In Graphviz, how do I align an edge to the top center of a node?

前端 未结 3 408
醉梦人生
醉梦人生 2020-12-17 03:05

In Graphviz / dot, is it possible to get the edge to connect exactly in the top center of a node? Reading the dot guide, I thought tailport and headport<

3条回答
  •  旧巷少年郎
    2020-12-17 03:26

    I see the same effect under Windows7 - did not try other platforms.

    I tried fiddling with the 'port positions', See http://www.graphviz.org/content/attrs#kportPos

    e.g. changing the last lines of your code to

      point2 -> point1
      point2 -> C:nw
      point1 -> point3
      point3 -> E:ne
      point1 -> D
    

    gives a (slightly) better positioning of the connecting lines.

提交回复
热议问题