orderGraphviz - fixed subgraphs

前端 未结 1 1718
Happy的楠姐
Happy的楠姐 2021-01-23 08:23

I like to create a 3 column graph like this:

\"enter

Code:

digraph         


        
1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-23 08:47

    You may try adding the edges which are not supposed to influence the layout with constraint=false. After the last cluster, insert something like:

    edge[constraint=false, style=solid];
    c->f;
    b->g;
    

    If the clusters get reordered anyway, you may add invisible edges (make sure that constraint=true) to enforce the layout:

    c -> e [constraint=true, style=invis];
    e -> a [constraint=true, style=invis];
    

    0 讨论(0)
提交回复
热议问题