gpt4 book ai didi

graph - 子图之间的距离增加

转载 作者:行者123 更新时间:2023-12-04 10:00:45 25 4
gpt4 key购买 nike

我有以下代码:

digraph g {
graph [rankdir="LR" ,compound="true" ];
subgraph cluster0 {
graph [label="Ready\n\nAllowed Purchaser Operations:\noperation1,operation2\n\nAllowed Supplier Operations:\noperation1,operation3" ];
1 [ shape="none" ,fontcolor="white" ];
};
subgraph cluster2 {
graph [label="Paused\n\nAllowed Purchaser Operations:\noperation1,operation3\n\nAllowed Supplier Operations:\noperation2,operation3" ];
3 [ shape="none" ,fontcolor="white" ];
};
subgraph cluster4 {
graph [label="Completed\n\nAllowed Purchaser Operations:\noperation4\n\nAllowed Supplier Operations:\noperation4" ];
5 [ shape="none" ,fontcolor="white" ];
};
1 -> 3 [ ltail="cluster0" ,lhead="cluster2" ,comment="6" ];
1 -> 5 [ ltail="cluster0" ,lhead="cluster4" ,comment="7" ];
3 -> 1 [ ltail="cluster2" ,lhead="cluster0" ,comment="8" ];
3 -> 5 [ ltail="cluster2" ,lhead="cluster4" ,comment="9" ];
}

我想增加子图之间的距离。我尝试使用 lenmarginpad,但是我尝试过的语法不起作用。有人可以帮我吗?

最佳答案

我认为您正在寻找的(确实是Emden指出)确实是nodesepranksep属性。

graph [nodesep=6, ranksep=4];

结果将是:

关于graph - 子图之间的距离增加,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19518389/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com