Discussion:
[graphviz-interest] How to draw topological sorted graph (in dot language)?
sharpshire
2009-11-12 14:03:18 UTC
Permalink
Hello,

First, I'm sorry for my english..

I have a question:
How to write a code in dot language to draw a topological sorted digraph. I
mean: all nodes should be placed in one line (this is my problem - how to
write a code in dot language to put all nodes in one line). Digraph should
looks like this example:

Loading Image...

Can anybody help?
--
View this message in context: http://old.nabble.com/How-to-draw-topological-sorted-graph-%28in-dot-language%29--tp26292381p26292381.html
Sent from the Graphviz - Interest mailing list archive at Nabble.com.

_______________________________________________
graphviz-***@research.att.com
https://mailman.research.att.com/mailman/listinfo/graphviz-interest
$witch
2009-11-12 14:22:58 UTC
Permalink
[snip] I mean: all nodes should be placed in one line [snip]
hi,

feel to be not the most expert, so wait for other, better suggestions.

i feel that "rank=same" is the right way, but have no direct experience in
a graph as your example.

cheers

Alessandro
--
"If 386BSD had been available when I started on Linux, Linux would
probably never had happened." Linus Torvalds
_______________________________________________
graphviz-***@research.att.com
https://mailman.research.att.com/mailman/listinfo/graphviz-interest
John Ellson
2009-11-12 14:42:55 UTC
Permalink
Post by sharpshire
Hello,
First, I'm sorry for my english..
How to write a code in dot language to draw a topological sorted digraph. I
mean: all nodes should be placed in one line (this is my problem - how to
write a code in dot language to put all nodes in one line). Digraph should
http://old.nabble.com/file/p26292381/GRAPH.gif
Can anybody help?
To constrain nodes to the same row, use rank=same

To constrain the left-right order or the nodes (assuming this is
required) is
a bit trickier. Use an invisible node and invisible edges with
ordering=out.


John

Loading...