设置sfdp铺设的最小长度GraphViz

时间:2016-05-14 16:13:39

标签: graph graphviz

是否可以通过sftp铺设更改节点之间的长度?它对于标签来说太小了。

digraph aNet {
    graph [layout=sfdp, overlap=prism, overlap_scaling=-20];
    _0 -> _1 [ label = "set"; ]
    _1 -> _2 [ label = "get"; ]
    _2 -> _3 [ label = "move"; ]
    _0 -> _2 [ label = "put"; ]
}

enter image description here

1 个答案:

答案 0 :(得分:1)

添加sep属性:

digraph aNet {
   graph [layout=sfdp, overlap=prism, overlap_scaling=-20, sep="+25,25"];
    _0 -> _1 [ label = "set";  ]
    _1 -> _2 [ label = "get";  ]
    _2 -> _3 [ label = "move";  ]
    _0 -> _2 [ label = "put";  ]
}