compareNodes compares two nodes to provide a deterministic ordering between them. Two nodes cannot have the same Node.Info value.
(l, r *Node)
| 1062 | // compareNodes compares two nodes to provide a deterministic ordering |
| 1063 | // between them. Two nodes cannot have the same Node.Info value. |
| 1064 | func compareNodes(l, r *Node) bool { |
| 1065 | return fmt.Sprint(l.Info) < fmt.Sprint(r.Info) |
| 1066 | } |
| 1067 | |
| 1068 | // entropyScore computes a score for a node representing how important |
| 1069 | // it is to include this node on a graph visualization. It is used to |
no outgoing calls
no test coverage detected
searching dependent graphs…