Graphviz [outputorder=edgesfirst]似乎无法工作

5
我正在使用graphviz的sfdp可视化图形。但是边缘覆盖了节点,这很烦人。我向图形添加了这个属性[outputorder=edgesfirst],但似乎没有起作用。
输出: enter image description here 源代码:
digraph G {
graph [overlap=false][outputorder=edgesfirst];
0;
1;
2;
3;

.....

330;
331;
0->18 [color=red];
0->325 [style=invis];
2->3 [dir=none];

.....

331->330 [color=red];
}
1个回答

7

如果将节点的样式设置为filled,然后添加一个白色的fillcolor,你就会看到节点出现在边的上方。

digraph G {
    graph [overlap=false outputorder=edgesfirst];
    node [style=filled fillcolor=white];
    0->18 [color=red];
    0->325 [style=invis];
    2->3 [dir=none];
    .....
    331->330 [color=red];

3
哦,默認是透明的。謝謝。 - LeOpArD

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接