[英]Layout of edge and node in graphviz
In graphviz I would like to have an edge that doesn't cross the node. 在graphviz中,我希望有一条不穿过节点的边。 Here is my graph:
这是我的图:
digraph G {
rankdir=LR;
fontname = "Bitstream Vera Sans";
fontsize = 8;
node [
fontname = "Bitstream Vera Sans"
fontsize = 8
shape = "record"
];
edge [
fontname = "Bitstream Vera Sans"
fontsize = 8
];
MethodContext [
label = "{ <head> MethodContext | <parent> parent \l| nativeIP \l | ip \l| sp \l| receiver \l| method \l| flags \l| Temp Var 1 \l Temp Var 2 \l ... \l Temp Var n \l| Stack \l ... \l Stack \l }"
];
MethodContext:parent -> MethodContext:head [tailport=e];
}
Without the tailport I got a nice vertical graph except that the edge is crossing the node. 没有尾端口,我得到了一个不错的垂直图,只不过边缘正在穿过节点。 But as soon as I add
[tailport=e]
like in the example my graph is horizontal and the edge is still crossing the node. 但是,就像示例中一样,当我添加
[tailport=e]
时,我的图是水平的,并且边缘仍然穿过节点。
How could I keep the node vertical and have the edge attached to the right side? 如何使节点保持垂直并使边缘连接到右侧?
Thanks 谢谢
谁想知道解决方案是
MethodContext:parent -> MethodContext:head:e;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.