The MWE below produces a simple graph. When I add the two upper nodes A1 and B1 to a subgraph the horizontal alignment is lost which is understandable, since the nodes in the subgraph are positioned independent of the others. What I don't understand is that the connection from B1 to B3 is not straight anymore. How can I fix this while keeping the subgraph?
Note: I need to use subgraphs in a much more complex example where I get the same Problem.
\documentclass[border=0.125cm]{standalone}
\usepackage{tikz}
\usetikzlibrary{graphdrawing}
\usetikzlibrary{graphs,quotes}
\usegdlibrary{trees,layered,force}
\begin{document}
\tikz \graph[layered layout] {
"A1";
"B1";
"B3";
"A2";
"A3";
"C";
"A2" -- "A3";
"A3" -- "C";
"B1" --[minimum layers=2] "B3";
"A1" -- "A2";
"B3" -- "C";
};
\tikz \graph[layered layout] {
//[layered layout]{
"A1";
"B1";
};
"B3";
"A2";
"A3";
"C";
"A2" -- "A3";
"A3" -- "C";
"B1" --[minimum layers=2] "B3";
"A1" -- "A2";
"B3" -- "C";
};
\end{document}

