Skip to content

Commit b4dcc38

Browse files
Fix clique counting orientation
1 parent 11ffddc commit b4dcc38

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

proc/community/src/integrationTest/java/org/neo4j/gds/cliquecounting/CliqueCountingMutateProcTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ void testWriteBackGraphMutationOnFilteredGraph() {
172172
.graphProject()
173173
.withNodeLabel("A")
174174
.withNodeLabel("B")
175+
.withRelationshipType("REL1",Orientation.UNDIRECTED)
176+
.withRelationshipType("REL2",Orientation.UNDIRECTED)
175177
.yields();
176178
runQuery(projectQuery);
177179

@@ -223,6 +225,7 @@ void testGraphMutationOnFilteredGraph() {
223225
.graphProject()
224226
.withNodeLabel("A")
225227
.withNodeLabel("B")
228+
.withRelationshipType("REL",Orientation.UNDIRECTED)
226229
.yields();
227230
runQuery(projectQuery);
228231

@@ -265,7 +268,7 @@ void testRunOnEmptyGraph() {
265268
GraphStoreCatalog.removeAllLoadedGraphs();
266269

267270
String projectQuery = GdsCypher.call("foo")
268-
.graphProject().withNodeLabel("X").yields();
271+
.graphProject().loadEverything(Orientation.UNDIRECTED).yields();
269272
runQuery(projectQuery);
270273

271274
String query = GdsCypher.call("foo")

proc/community/src/integrationTest/java/org/neo4j/gds/cliquecounting/CliqueCountingStatsProcTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void testRunOnEmptyGraph() {
102102
GraphStoreCatalog.removeAllLoadedGraphs();
103103

104104
String projectQuery = GdsCypher.call("foo")
105-
.graphProject().withNodeLabel("X").yields();
105+
.graphProject().loadEverything(Orientation.UNDIRECTED).yields();
106106
runQuery(projectQuery);
107107

108108
String query = GdsCypher.call("foo")

proc/community/src/integrationTest/java/org/neo4j/gds/cliquecounting/CliqueCountingStreamProcTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ void setup() throws Exception {
7474
runQuery(
7575
GdsCypher.call(CLIQUE_COUNTING_GRAPH)
7676
.graphProject()
77-
.loadEverything(Orientation.NATURAL)
77+
.loadEverything(Orientation.UNDIRECTED)
7878
.yields()
7979
);
8080
}
@@ -166,7 +166,7 @@ void testRunOnEmptyGraph() {
166166
GraphStoreCatalog.removeAllLoadedGraphs();
167167

168168
String projectQuery = GdsCypher.call("foo")
169-
.graphProject().withNodeLabel("X").yields();
169+
.graphProject().loadEverything(Orientation.UNDIRECTED).yields();
170170
runQuery(projectQuery);
171171

172172
String query = GdsCypher.call("foo")

proc/community/src/integrationTest/java/org/neo4j/gds/cliquecounting/CliqueCountingWriteProcTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void setup() throws Exception {
7777
runQuery(
7878
GdsCypher.call(CLIQUE_COUNTING_GRAPH)
7979
.graphProject()
80-
.loadEverything(Orientation.NATURAL)
80+
.loadEverything(Orientation.UNDIRECTED)
8181
.yields()
8282
);
8383
}
@@ -150,7 +150,7 @@ void testRunOnEmptyGraph() {
150150
GraphStoreCatalog.removeAllLoadedGraphs();
151151

152152
String projectQuery = GdsCypher.call("foo")
153-
.graphProject().withNodeLabel("X").yields();
153+
.graphProject().loadEverything(Orientation.UNDIRECTED).yields();
154154
runQuery(projectQuery);
155155

156156
String query = GdsCypher.call("foo")

0 commit comments

Comments
 (0)