Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit a45d04e

Browse files
committed
only set partition property if we're writing
1 parent 93f79ea commit a45d04e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algo/src/main/java/org/neo4j/graphalgo/LabelPropagationProc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ public Stream<LabelPropagationStats> labelPropagation(
8989

9090
LabelPropagationStats.Builder stats = new LabelPropagationStats.Builder()
9191
.iterations(iterations)
92-
.partitionProperty(partitionProperty)
9392
.weightProperty(weightProperty);
9493

9594
GraphLoader graphLoader = graphLoader(configuration, partitionProperty, weightProperty, createPropertyMappings(partitionProperty, weightProperty));
@@ -111,6 +110,7 @@ public Stream<LabelPropagationStats> labelPropagation(
111110
final int[] labels = compute(direction, iterations, batchSize, concurrency, graph, stats);
112111
if (configuration.isWriteFlag(DEFAULT_WRITE) && partitionProperty != null) {
113112
stats.withWrite(true);
113+
stats.partitionProperty(partitionProperty);
114114
write(concurrency, partitionProperty, graph, labels, stats);
115115
}
116116

0 commit comments

Comments
 (0)