graphviz中边和节点的布局
在 graphviz 中,我希望有一条不穿过节点的边。 这是我的图表:
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];
}
没有尾部,我得到了一个很好的垂直图表,除了边缘穿过节点。但是,一旦我像示例中那样添加 [tailport=e]
,我的图形就是水平的,并且边缘仍然穿过节点。
如何保持节点垂直并将边缘连接到右侧?
谢谢
In graphviz I would like to have an edge that doesn't cross the node.
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.
How could I keep the node vertical and have the edge attached to the right side?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谁想知道解决方案是
Who ever want to know the solution is