Skip to content

Commit 2c58f34

Browse files
minor comment
1 parent 746cae7 commit 2c58f34

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

alpha/alpha-algo/src/main/java/org/neo4j/gds/impl/spanningtree/KSpanningTree.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ private HugeLongPriorityQueue createPriorityQueue(long parentSize, boolean pruni
9999

100100
@Override
101101
public void release() {
102-
graph.release();
103102
graph = null;
104103
}
105104

@@ -276,7 +275,7 @@ private SpanningTree growApproach(SpanningTree spanningTree) {
276275
affectedCost = costToParent.get(rootChild);
277276
}
278277
} else {
279-
if (parentOutDegree == 0) { //if parent is a leaf
278+
if (parentOutDegree == 0) { //if parent becomes a leaf
280279
affectedNode = parentOfTrimmed;
281280
affectedCost = costToParent.get(parentOfTrimmed);
282281
}

0 commit comments

Comments
 (0)