orientation - graphviz rows of nodes -


i'm trying use graphviz create branching diagram based on time line. however, when try connect rows of nodes show have branched row of nodes, order gets mixed around. there way specify order of rows?

i've tried used various rank settings nodes nothing seems work. i've tried invisible nodes , edges well, doesn't either.

i'd able stack rows, when new branch created off of old one, appear above row branched off of. code stands right now, branches appear in right order, when try connect branches show relationship, that's when order gets messed up. have experience similar?

digraph g{ ranksep = 0.05; rankdir="lr"; node[width=0.5, height=0.5, shape=plaintext]; edge[weight=10, arrowhead=none]; "7/2014" -> "8/2014" -> "9/2014" -> "10/2014" -> "11/2014" -> "12/2014" -> "1/2015" -> "2/2015" -> "3/2015" -> "4/2015" -> "5/2015" -> "6/2015" -> "7/2015" -> "8/2015";  node[shape=square, style="filled,rounded", fillcolor=red]; "trunk 7/2014" -> "trunk 8/2014" -> "trunk 9/2014" -> "trunk 10/2014" -> "trunk 11/2014" -> "trunk 12/2014" -> "trunk 1/2015" -> "trunk 2/2015" -> "trunk 3/2015" -> "trunk 4/2015" -> "trunk 5/2015" -> "trunk 6/2015" -> "trunk 7/2015" -> "trunk 8/2015";  node[shape=square, style="filled,rounded", fillcolor=blue]; "second 8/2014" -> "second 9/2014" -> "second 10/2014" -> "second 11/2014" -> "second 12/2014" -> "second 1/2015" -> "second 2/2015" -> "second 3/2015" -> "second 4/2015" -> "second 5/2015" -> "second 6/2015" -> "second 7/2015" -> "second 8/2015";  node[shape=square, style="filled,rounded", fillcolor=green]; "third 10/2014" -> "third 11/2014" -> "third 12/2014";  {rank=same; "7/2014";"trunk 7/2014";} {rank=same; "8/2014";"trunk 8/2014";"second 8/2014";} {rank=same; "9/2014";"trunk 9/2014";"second 9/2014";} {rank=same; "10/2014";"trunk 10/2014";"second 10/2014";"third 10/2014";} {rank=same; "11/2014";"trunk 11/2014";"second 11/2014";"third 11/2014";} {rank=same; "12/2014";"trunk 12/2014";"second 12/2014";"third 12/2014";} {rank=same; "1/2015";"trunk 1/2015";"second 1/2015";} {rank=same; "2/2015";"trunk 2/2015";"second 2/2015";} {rank=same; "3/2015";"trunk 3/2015";"second 3/2015";} {rank=same; "4/2015";"trunk 4/2015";"second 4/2015";} {rank=same; "5/2015";"trunk 5/2015";"second 5/2015";} {rank=same; "6/2015";"trunk 6/2015";"second 6/2015";} {rank=same; "7/2015";"trunk 7/2015";"second 7/2015";} {rank=same; "8/2015";"trunk 8/2015";"second 8/2015";}  "trunk 8/2014" -> "second 8/2014" } 


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -