@@ -104,16 +104,15 @@ void shouldWriteTriangleCount() {
104
104
" orientation: 'UNDIRECTED'" +
105
105
" }" +
106
106
" }," +
107
- " writeProperty: 'triangles'," +
108
- " clusteringCoefficientProperty: 'clusteringCoefficient'" +
107
+ " writeProperty: 'triangles'" +
109
108
" })" +
110
- " YIELD nodeCount, triangleCount, averageClusteringCoefficient " ;
109
+ " YIELD nodeCount, triangleCount" ;
111
110
112
- String expected = "+---------------------------------------------------------- +" + NL +
113
- "| nodeCount | triangleCount | averageClusteringCoefficient | " + NL +
114
- "+---------------------------------------------------------- +" + NL +
115
- "| 6 | 3 | 0.6055555555555555 | " + NL +
116
- "+---------------------------------------------------------- +" + NL +
111
+ String expected = "+---------------------------+" + NL +
112
+ "| nodeCount | triangleCount |" + NL +
113
+ "+---------------------------+" + NL +
114
+ "| 6 | 3 |" + NL +
115
+ "+---------------------------+" + NL +
117
116
"1 row" + NL ;
118
117
119
118
String actual = runQuery (query , Result ::resultAsString );
@@ -168,16 +167,15 @@ void shouldWriteTriangleCountForYelpDataset() {
168
167
" }" +
169
168
" }," +
170
169
" concurrency: 4," +
171
- " writeProperty: 'triangles'," +
172
- " clusteringCoefficientProperty: 'coefficient'" +
170
+ " writeProperty: 'triangles'" +
173
171
" })" +
174
- " YIELD nodeCount, triangleCount, averageClusteringCoefficient " ;
172
+ " YIELD nodeCount, triangleCount" ;
175
173
176
- String expected = "+---------------------------------------------------------- +" + NL +
177
- "| nodeCount | triangleCount | averageClusteringCoefficient | " + NL +
178
- "+---------------------------------------------------------- +" + NL +
179
- "| ? | ? | 0.0523 | " + NL +
180
- "+---------------------------------------------------------- +" + NL +
174
+ String expected = "+---------------------------+" + NL +
175
+ "| nodeCount | triangleCount |" + NL +
176
+ "+---------------------------+" + NL +
177
+ "| ? | ? |" + NL +
178
+ "+---------------------------+" + NL +
181
179
"1 row" + NL ;
182
180
183
181
String actual = runQuery (query , Result ::resultAsString );
@@ -190,15 +188,14 @@ void shouldWriteWithCypherProjection() {
190
188
String query = " CALL gds.triangleCount.write({" +
191
189
" nodeQuery: 'MATCH (p:Person) RETURN id(p) AS id'," +
192
190
" relationshipQuery: 'MATCH (p1:Person)-[:KNOWS]-(p2:Person) RETURN id(p1) AS source, id(p2) AS target'," +
193
- " writeProperty: 'triangle'," +
194
- " clusteringCoefficientProperty: 'coefficient'" +
195
- " }) YIELD nodeCount, triangleCount, averageClusteringCoefficient" ;
196
-
197
- String expected = "+----------------------------------------------------------+" + NL +
198
- "| nodeCount | triangleCount | averageClusteringCoefficient |" + NL +
199
- "+----------------------------------------------------------+" + NL +
200
- "| 6 | 3 | 0.6055555555555555 |" + NL +
201
- "+----------------------------------------------------------+" + NL +
191
+ " writeProperty: 'triangle'" +
192
+ " }) YIELD nodeCount, triangleCount" ;
193
+
194
+ String expected = "+---------------------------+" + NL +
195
+ "| nodeCount | triangleCount |" + NL +
196
+ "+---------------------------+" + NL +
197
+ "| 6 | 3 |" + NL +
198
+ "+---------------------------+" + NL +
202
199
"1 row" + NL ;
203
200
204
201
String actual = runQuery (query , Result ::resultAsString );
0 commit comments