I'm trying to draw a database dependency diagram, similar to the one shown below
(Gaaah! I can't upload images. ASCII art it is then...)
+------+------+------+------+------+------+
| | | | | | |
| v | v v v v
+---+ +---+ +---+ +---+ +---+ +---+ +---+ Lines extend from 1 and 3,
| 1 | | 2 | | 3 | | 4 | | 5 | | 6 | | 7 | join above 2, and then route
+---+ +---+ +---+ +---+ +---+ +---+ +---+ to all other blocks
I've managed to get the easy bits done, namely drawing the blocks. I assume that I need to create a number of control points that the arrows must move through to 'raise' them above the nodes. What I can't get is to have them drawn nice and square.
Theres also the problem of the junction point above PROJ_NAME (block 2). PROJ_NUM (block 1) and EMP_NUM (block 3) together form a junction, and this junction joins to all the others. My Tikz attempt (although visually very far from what I want) illustrates this (I think?)
Please could someone point me in the right direction? Am I on the right track, is there a way easier method of doing this?
\tikzstyle{line} = [draw, -latex']
\tikzstyle{block} = [rectangle, draw, text centered, rounded corners,
minimum height=1.5em,font=\tiny]
\tikzstyle{cntrl} = [node distance=2em, minimum height=0]
\begin{tikzpicture}
[shorten >=1pt,node distance=0.1em,auto,scale=0.5]
\node[block] (n1) {PROJ\_NUM};
\node[block] (n2) [right =of n1] {PROJ\_NAME};
\node[block] (n3) [right =of n2] {EMP\_NUM};
\node[block] (n4) [right =of n3] {EMP\_NAME};
\node[block] (n5) [right =of n4] {JOB\_CLASS};
\node[block] (n6) [right =of n5] {CHG\_HOUR};
\node[block] (n7) [right =of n6] {HOURS};
\node[cntrl] (i1) [above =of n1] {};
\node[cntrl] (i2) [above =of n2] {};
\node[cntrl] (i3) [above =of n3] {};
\node[cntrl] (i4) [above =of n4] {};
\node[cntrl] (i5) [above =of n5] {};
\node[cntrl] (i6) [above =of n6] {};
\node[cntrl] (i7) [above =of n7] {};
\path [line] (n1) .. controls (i1) and (i2) .. (n2);
\path [line] (n3) .. controls (i3) and (i2) .. (n2);
\path [line] (i2) .. controls (i2) and (i4) .. (n4);
\path [line] (i2) .. controls (i2) and (i5) .. (n5);
\path [line] (i2) .. controls (i2) and (i6) .. (n6);
\path [line] (i2) .. controls (i2) and (i7) .. (n7);
\end{tikzpicture}
Links to diagrams that I uploaded. Hopefully the links remain active..
Attempt so far: