Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does the dot Directed Graph allow for subgraphs with a different rankdir?

Using the dot directed graph language, is it possible to create subgraphs with a different rankdir?

I tried the following, which didn't work. Both graphs were left to right, despite the presence of rankdir="TB" in the subgraph.

digraph g {
    rankdir="LR";
    LEFT->RIGHT;
    clusterrank="local";

    subgraph cluster1 { 
        rankdir="TB";    
        node[style=filled];         
        color=black;
        TOP->BOTTOM;                
    }   
}

Is there some other syntax to get a Top/Bottom and Left/Right graph in the same diagram, or is this not possible?

like image 643
Alan Storm Avatar asked Jun 18 '09 17:06

Alan Storm


1 Answers

Seems like this is a long standing feature request:

  • Archived bug at graphviz.org
  • Issue as migrated to Gitlab
like image 197
Ryan Smith Avatar answered Oct 08 '22 23:10

Ryan Smith