[graphviz-interest] A problem with rank = same
Ron Savage <[email protected]> Thu, 04 Sep 2014 14:21:48 +1000
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
Consider the attached x.gv. I've marked 3 lines a optional, so you can easily put a '#' at the start. Actually, it saves me explaining things.... I tried all 8 combinations of those lines activated and commented out, and in the 1 case where they are all activated, node_2 is above node_3, meaning rank=same is ignored. In the other 7 cases node_2 is horizontally to the left of node_3, as I'd expect. Is that a bug in Graphviz or have I misunderstood something? -- Ron Savage - savage.net.au _______________________________________________ [email protected] http://lists.research.att.com/mailman/listinfo/graphviz-interest
x.gv
(text/plain, 246 B)
strict digraph
{
node_1
->
subgraph // Optional
cluster // Optional
{
node [shape = square]
rank = same;
node_2
-> // Optional
node_3
[
color = green
penwidth = 4
]
}
[
color = red
penwidth = 2
]
}