Skip to content

Commit 1a7bcfd

Browse files
Correct filter call
1 parent 2ea9418 commit 1a7bcfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algo/src/main/java/org/neo4j/gds/similarity/nodesim/NodeSimilarity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ private long calculateWorkload() {
441441

442442
//when on concurrency of 1 on not-filtered similarity, we only compare nodeId with greater indexed nodes
443443
// so work is halved. This does not hold for filtered similarity, since the targetNodes might be lesser indexed.
444-
boolean isNotFiltered = sourceNodes.equals(NodeFilter.noOp) && targetNodeFilter.equals(NodeFilter.noOp);
444+
boolean isNotFiltered = sourceNodeFilter.equals(NodeFilter.noOp) && targetNodeFilter.equals(NodeFilter.noOp);
445445
if (concurrency == 1 && isNotFiltered) {
446446
workload = workload / 2;
447447
}

0 commit comments

Comments
 (0)