Browse Source

Continue early if a node does not have any parents in TrimTree

Wade Simba Khadder 8 years ago
parent
commit
0070468e3c
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      internal/graph/graph.go

+ 1
- 0
internal/graph/graph.go View File

@@ -360,6 +360,7 @@ func (g *Graph) TrimTree(kept NodeSet) {
360 360
 			for _, outEdge := range cur.Out {
361 361
 				delete(outEdge.Dest.In, cur)
362 362
 			}
363
+			continue
363 364
 		}
364 365
 
365 366
 		// Get the parent. Since cur.In may only be of size 0 or 1, parent will be