Skip to content

Commit c65a6ca

Browse files
authored
Merge pull request #1590 from s1ck/bump-gds-dependency
Bump GDS dependency to 1.3.1 in K1ColoringExample
2 parents 037be07 + 34c8f12 commit c65a6ca

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

examples/PregelK1Coloring/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66

77
ext {
88
// Make sure these are the same as your installation of GDS and Neo4j
9-
gdsVersion = '1.2.1'
9+
gdsVersion = '1.3.1'
1010
neo4jVersion = '4.0.4'
1111

1212
// Necessary compile-time dependency for code generation

examples/PregelK1Coloring/src/main/java/gds/example/K1ColoringAlgorithm.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121

2222
import org.neo4j.graphalgo.Algorithm;
2323
import org.neo4j.graphalgo.api.Graph;
24+
import org.neo4j.graphalgo.beta.pregel.ImmutablePregelConfig;
2425
import org.neo4j.graphalgo.beta.pregel.Pregel;
2526
import org.neo4j.graphalgo.beta.pregel.PregelConfig;
26-
import org.neo4j.graphalgo.config.AlgoBaseConfig;
2727
import org.neo4j.graphalgo.core.concurrency.Pools;
2828
import org.neo4j.graphalgo.core.utils.paged.AllocationTracker;
2929
import org.neo4j.graphalgo.core.utils.paged.HugeDoubleArray;
@@ -40,7 +40,7 @@ public class K1ColoringAlgorithm extends Algorithm<K1ColoringAlgorithm, HugeDoub
4040

4141
@Override
4242
public HugeDoubleArray compute() {
43-
PregelConfig config = new PregelConfig.Builder()
43+
PregelConfig config = ImmutablePregelConfig.builder()
4444
.isAsynchronous(true)
4545
.build();
4646

@@ -49,7 +49,6 @@ public HugeDoubleArray compute() {
4949
config,
5050
new K1ColoringExample(),
5151
10,
52-
AlgoBaseConfig.DEFAULT_CONCURRENCY,
5352
Pools.DEFAULT,
5453
AllocationTracker.EMPTY
5554
);

examples/PregelK1Coloring/src/test/java/gds/example/K1ColoringTest.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@
2121

2222
import org.junit.jupiter.api.BeforeEach;
2323
import org.junit.jupiter.api.Test;
24-
import org.neo4j.graphalgo.AbstractNodeProjection;
25-
import org.neo4j.graphalgo.AbstractRelationshipProjection;
2624
import org.neo4j.graphalgo.AlgoTestBase;
2725
import org.neo4j.graphalgo.StoreLoaderBuilder;
2826
import org.neo4j.graphalgo.api.Graph;
27+
import org.neo4j.graphalgo.beta.pregel.ImmutablePregelConfig;
2928
import org.neo4j.graphalgo.beta.pregel.Pregel;
3029
import org.neo4j.graphalgo.beta.pregel.PregelConfig;
31-
import org.neo4j.graphalgo.config.AlgoBaseConfig;
3230
import org.neo4j.graphalgo.core.concurrency.Pools;
3331
import org.neo4j.graphalgo.core.utils.paged.AllocationTracker;
3432
import org.neo4j.graphalgo.core.utils.paged.HugeDoubleArray;
@@ -74,7 +72,7 @@ void runK1Coloring() {
7472
int batchSize = 10;
7573
int maxIterations = 10;
7674

77-
PregelConfig config = new PregelConfig.Builder()
75+
PregelConfig config = ImmutablePregelConfig.builder()
7876
.isAsynchronous(true)
7977
.build();
8078

@@ -83,7 +81,6 @@ void runK1Coloring() {
8381
config,
8482
new K1ColoringExample(),
8583
batchSize,
86-
AlgoBaseConfig.DEFAULT_CONCURRENCY,
8784
Pools.DEFAULT,
8885
AllocationTracker.EMPTY
8986
);

0 commit comments

Comments
 (0)