Record walk order in the debug graph

Insert the walk order into the graph labels. Removed some extra debug
output.
This commit is contained in:
James Bardin 2016-11-04 11:30:51 -04:00
parent 354f04f104
commit 1cea51a9fa

View File

@ -24,8 +24,8 @@ type DebugGraph struct {
sync.Mutex
Name string
step int
buf bytes.Buffer
ord int
buf bytes.Buffer
Dot *dot.Graph
dotOpts *GraphDotOpts
@ -94,6 +94,10 @@ func (dg *DebugGraph) DebugNode(v interface{}) {
dg.Lock()
defer dg.Unlock()
// record the ordinal value for each node
ord := dg.ord
dg.ord++
name := graphDotNodeName("root", v)
var node *dot.Node