Doing this also increases the distance between "g" and "root", giving the child nodes of "root" more room. Reducing the edge weight by 90% for all edges has the net effect of increasing the edge length (or more precisely relaxing the constraint on edge length) obviously, this helps the nodes to "fan out". I made a few small changes to your original dot file. I have found twopi to be the most difficult to work with of all the graphviz layout engines.
The `graphviz` renderer needs to obtain a dot specification and it needs to know the layout algorithm to use.
Customizable by plugins: layouts, metrics, data sources, manipulation tools. We are particularly interested in its ability to output SVG, Scalable Vector Graphics, which we can embed in the SWISH output window. High-performance: built-in rendering engine.
It takes the specification for a graph in the _dot_ language and produces a variety of output formats. sfdp stands for Scalable Force Directed Placement. () is a popular rendering program for graphs. Layout Engines Graphviz Documentation Layout Engines Layout Engines dot hierarchical or layered drawings of directed graphs.