Friday 15 August 2014

graphviz - Mrecord shapes orientations and rankdir -



graphviz - Mrecord shapes orientations and rankdir -

is there solution not alter orientation of mrecord shapes when rankdir diagram attribute alter ?

here simple diagram illustration 2 outputs:

digraph g { rankdir=lr // or rankdir=tb node [shape=mrecord] 1 [label="{<in1>in[1]}|node[1]|{<out2>out[2]|<out3>out[3]}"] 2 [label="{<in1>in[1]}|node[2]|{<out2>out[2]|<out3>out[3]}"] 1:out3 -> 2:in1 }

output rankdir=lr:

output rankdir=tb:

i have rankdir=lr diagram, mrecord shapes aspect in tb diagram... how can ? subgraph ? or maybe html-like labels (but more complex use) ?

other related question: record nodes , rankdir in graphviz

according http://stackoverflow.com/a/20184005/938081, putting {} around label text alter direction of mrecord separators. example: 2 [label="{{<in1>in[1]}|node[2]|{<out2>out[2]|<out3>out[3]}}"]

the result next (same code previous post):

graphviz dot

No comments:

Post a Comment