I am drawing a figure which has many nodes and many lines connecting the nodes. I want every line connecting two nodes to start from "north" and to end to "south". So, essentially, my code is something like
\begin{tikzpicture}
\node (a) at (0,0) {};
\node (b) at (0,1) {};
\draw (a.north) -- (b.south);
\end{tikzpicture}
with many nodes definitions and many draws. I want to define once and for all that all line should start from "north" and end to "south", so I tried something like
every path/.style={parent anchor=north, child anchor=south}
but it doesn't work. The question is: is there a way to specify in the template that any line should start from "north" and end to "south" so avoiding the need to write this in every draw?
\draw (a) -- (b);
?\foreach \i/\j in {a/b, c/d, e/f} {\draw (\i.north) -- (\j.south);}
, is that an option?\node (a) at (0,0)
and\node (b) at (1,1)