14

Howto break a flat but sparsely connected graphviz graph into multiple rows?

Graphviz yields a graph of about 4 ranks, but over 9000 nodes wide. However since the graph is sparsely connected we could break it in to rows, for example each 1000 nodes, and thus make it fit on nine rows one page. How can this be done?

Not looking for unflatten, but rather something like line breaks in a text editor (is it clear what I am looking for?).

Edit: PDF with example graph here

akuhn
  • 27,477
  • 2
  • 76
  • 91

1 Answers1

-1

Like GraphViz Documentation, section 2.5: Node and Edge Placement, like Figure 9: Graph with constrained ranks?

http://www.graphviz.org/pdf/dotguide.pdf

anachoret
  • 51
  • 4
  • 1
    Thanks for the pointer! But as far as I see I cannot put a subgraph below another without a third one to align them. And also, I would have to do this manually, ie having to know the connected components in advance and decide manually which one to put on the same row. I would rather like to have something that uses `dot` to align the subgraphs and then `neato` to layout all subgraphs. – akuhn Aug 27 '09 at 11:26