nodesep

type: double, default: 0.25, minimum: 0.02

In dot, nodesep specifies the minimum space between two adjacent nodes in the same rank, in inches.

For other layouts, nodesep affects the spacing between loops on a single node, or multiedges between a pair of nodes.

Small node separation
digraph {
    nodesep=0.1;
    node1; node2; node3;
}
Large node separation
digraph {
    nodesep=0.5;
    node1; node2; node3;
}
Valid on:
  • Graphs
Last modified August 8, 2021: Add nodesep examples (82c2971)