Skip to content

5. GraphViz Examples

Example 1

  1. splines=false doesn't work well with labels - it often causes unexpected behavior
  2. splines=line is better for straight edges with labels
  3. The layout engine (dot, neato, fdp, etc.) significantly affects how edges are drawn
  4. Increasing nodesep and ranksep gives more space for straight edges
  5. Using labelfloat=true can help position labels better

G11221--2441--4551--5332--32--4662--63--6773--74--54--65--6885--86--76--87--825

  • nodesep for horizontal spacing
  • ranksep for more vertical spacing
  • len values for longer individual edges

Example 2

G11221--230441--424551--5252--428332--327662--6274--5294--6215--630885--8303--626773--7306--7286--8367--825

Research, Learning Resources