0

I have a very large graph made of several group of sub-graphs.

My current graph

I would like the groups of node to be distributed vertically and not horizontally. Is there a way to restrict this graph to a specific format? Or at least to change this horizontal structure?

1213
  • 706
  • 2
  • 8
  • 25

2 Answers2

0

Try the keyword rankdir. Possible parameter are LR or TB

digraph G {
rankdir=LR
nodesep=.25; ranksep=.5;
330991 -> 330992;
330991 -> 330993;
330991 -> 330995;
330995 -> 330996;
330991 -> 331006; 
331006 -> 331007;
330991 -> 331823;
}
RaHo
  • 148
  • 1
  • 5
0

Linux shell script:

ccomps -xC -oLOOK.gv myFile.gv
for f in LOOK_*.gv; do F=`basename -s .gv $f`;dot $f >$F.dot;done
gvpack -array_it1 LOOK_*.dot | neato -n2 -Tpng >o.png
sroush
  • 5,375
  • 2
  • 5
  • 11