How to control node placement in graphviz (i.e. avoid edge crossings)

前端 未结 4 858
醉话见心
醉话见心 2021-01-30 09:12

I\'m using graphviz (dot) to generate the graph you can see below. The node in the lower left corner (red ellipse) causes annoyance as its edges cross several edges of the adjac

4条回答
  •  感情败类
    2021-01-30 09:20

    You could create an invisible constraint, to cause the red node to appear to the left of all other nodes.

    redNode -> leftmostNode [style=invis];
    

    Before:

    before

    After:

    after

提交回复
热议问题