File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
algo/src/main/java/org/neo4j/gds/similarity/nodesim Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ public class NodeSimilarity extends Algorithm<NodeSimilarityResult> {
5757 private final MetricSimilarityComputer similarityComputer ;
5858 private HugeObjectArray <long []> vectors ;
5959 private HugeObjectArray <double []> weights ;
60- private long nodesToCompare ;
6160
6261 private final boolean weighted ;
6362
@@ -188,7 +187,7 @@ public SimilarityGraphResult computeToGraph() {
188187 executorService
189188 ).build (similarities );
190189 }
191- return new SimilarityGraphResult (similarityGraph , nodesToCompare , isTopKGraph );
190+ return new SimilarityGraphResult (similarityGraph , sourceNodes . cardinality () , isTopKGraph );
192191 }
193192
194193 private void prepare () {
@@ -230,7 +229,6 @@ private void prepare() {
230229 progressTracker .logProgress (graph .degree (node ));
231230 return null ;
232231 });
233- nodesToCompare = sourceNodes .cardinality ();
234232 progressTracker .endSubTask ();
235233 }
236234
You can’t perform that action at this time.
0 commit comments