We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6547ac5 commit d26b50eCopy full SHA for d26b50e
algo/src/main/java/org/neo4j/gds/steiner/SteinerBasedDeltaStepping.java
@@ -183,9 +183,12 @@ private boolean ensureShortest(
183
long currentBin,
184
List<SteinerBasedDeltaTask> tasks
185
) {
186
+ if (currentBin == NO_BIN) { //there is no more nodes to relax, path to target node is certainly shortest
187
+ return true;
188
+ }
189
if (oldBin == currentBin) {
190
//if closest terminal is in another bucket, can't be sure it's the best path
- if (distance >= (currentBin+1) * delta) {
191
+ if (distance >= (currentBin + 1) * delta) {
192
return false;
193
}
194
//find closest node to be processed afterwards
0 commit comments