Increasing distance between subgraphs

前端 未结 2 1529
南旧
南旧 2021-02-08 18:54

I have the following code:

digraph g {
graph [rankdir=\"LR\" ,compound=\"true\" ];
    subgraph cluster0 {
        graph [label=\"Ready\\n\\nAllowed Purchaser Op         


        
相关标签:
2条回答
  • 2021-02-08 19:52

    I think what you are looking for (as Emden points out) are indeed the nodesep and ranksep attributes.

    graph [nodesep=6, ranksep=4];
    

    The result would be:

    enter image description here

    0 讨论(0)
  • 2021-02-08 19:55

    Clusters are derived objects; their layout depends solely on the nodes contained in them. Thus, to alter the cluster spacing, you need to alter the node spacing. Try setting the ranksep and nodesep attributes to larger values.

    0 讨论(0)
提交回复
热议问题