Explorar el Código

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

Wade Simba Khadder hace 9 años
padre
commit
0070468e3c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      internal/graph/graph.go

+ 1
- 0
internal/graph/graph.go Ver fichero

@@ -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