code: func (g *Graph) SortNodes(cum bool, visualMode bool) {
  	// Sort nodes based on requested mode
  	switch {
  	case visualMode:
  		// Specialized sort to produce a more visually-interesting graph
  		g.Nodes.Sort(EntropyOrder)
  	case cum:
  		g.Nodes.Sort(CumNameOrder)
  	default:
  		g.Nodes.Sort(FlatNameOrder)
  	}
  }
docs: // SortNodes sorts the nodes in a graph based on a specific heuristic.