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 57a0ce0 commit b26b4a4Copy full SHA for b26b4a4
algo/src/main/java/org/neo4j/gds/steiner/SteinerBasedDeltaStepping.java
@@ -180,8 +180,8 @@ private boolean ensureShortest(
180
List<SteinerBasedDeltaTask> tasks
181
) {
182
if (oldBin == currentBin) {
183
- //if closest terminal is still far off, unknown if shortest path found
184
- if (distance >= currentBin * delta) {
+ //if closest terminal is in another bucket, can't be sure it's the best path
+ if (distance >= (currentBin+1) * delta) {
185
return false;
186
}
187
//find closest node to be processed afterwards
0 commit comments