Graphviz: make edges not affecting the hierarchy of nodes

后端 未结 2 1626
清歌不尽
清歌不尽 2021-01-18 00:19

I add edges (green) to graph, that makes hierarchy of nodes. How to add minor edges (red) that not affecting on the hierarchy?

2条回答
  •  失恋的感觉
    2021-01-18 01:14

    If you want an edge to not have an impact on ranking, you can simply set the constraint attribute to false:

    If false, the edge is not used in ranking the nodes.

    Example:

    node1 -> node2 [constraint=false];
    

提交回复
热议问题