Graphviz - 固定节点起点和终点
Graphviz - Fixed Node Origin and End Point
有什么方法可以确保所有边都从一个节点上的同一个地方开始,并在 graphviz 中的同一个节点上结束(参见我的原始模型)?我一直在查看 graphviz 文档,但似乎找不到适合此用例的参数。
您可能正在寻找节点 端口,特别是 罗盘点。
端口和罗盘点在 dot language grammar. A detailed description with examples can be found in the dot guide,第 18 页,“3.1 节点端口”中定义:
A node port is a point where edges can attach to a node.
There are two types of ports. Ports based on the 8 compass points "n", "ne", "e", "se", "s", "sw", "w" or "nw" can be specified for any node.
In addition, nodes with a recordshape can use the record structure to define ports, while HTML-like labels with tables can make any cell a port using the PORT attribute of a element.
使用带有罗盘点的港口的两个例子:
a:e -> b:w
a -> b [tailport=e, headport=w]
有什么方法可以确保所有边都从一个节点上的同一个地方开始,并在 graphviz 中的同一个节点上结束(参见我的原始模型)?我一直在查看 graphviz 文档,但似乎找不到适合此用例的参数。
您可能正在寻找节点 端口,特别是 罗盘点。
端口和罗盘点在 dot language grammar. A detailed description with examples can be found in the dot guide,第 18 页,“3.1 节点端口”中定义:
A node port is a point where edges can attach to a node.
There are two types of ports. Ports based on the 8 compass points "n", "ne", "e", "se", "s", "sw", "w" or "nw" can be specified for any node.
In addition, nodes with a recordshape can use the record structure to define ports, while HTML-like labels with tables can make any cell a port using the PORT attribute of a element.
使用带有罗盘点的港口的两个例子:
a:e -> b:w
a -> b [tailport=e, headport=w]