type: string | bool, default: <none> (graphs) , false (nodes)
The center of the layout will be the root of the generated spanning tree.
In twopi, root will actually be the central node. In circo, the block containing the node will be central in the drawing of its connected component. If not defined, twopi will pick a most central node, and circo will pick a random node.
If the root attribute is defined as the empty string, twopi will reset it to name of the node picked as the root node.
For twopi, it is possible to have multiple roots, presumably one for each component. If more than one node in a component is marked as the root, twopi will pick one.
© 2025 The Graphviz Authors
Licensed under the Eclipse Public License 1.0.
https://www.graphviz.org/docs/attrs/root/