@@ -104,16 +104,15 @@ void shouldWriteTriangleCount() {
104104 " orientation: 'UNDIRECTED'" +
105105 " }" +
106106 " }," +
107- " writeProperty: 'triangles'," +
108- " clusteringCoefficientProperty: 'clusteringCoefficient'" +
107+ " writeProperty: 'triangles'" +
109108 " })" +
110- " YIELD nodeCount, triangleCount, averageClusteringCoefficient " ;
109+ " YIELD nodeCount, triangleCount" ;
111110
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 +
117116 "1 row" + NL ;
118117
119118 String actual = runQuery (query , Result ::resultAsString );
@@ -168,16 +167,15 @@ void shouldWriteTriangleCountForYelpDataset() {
168167 " }" +
169168 " }," +
170169 " concurrency: 4," +
171- " writeProperty: 'triangles'," +
172- " clusteringCoefficientProperty: 'coefficient'" +
170+ " writeProperty: 'triangles'" +
173171 " })" +
174- " YIELD nodeCount, triangleCount, averageClusteringCoefficient " ;
172+ " YIELD nodeCount, triangleCount" ;
175173
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 +
181179 "1 row" + NL ;
182180
183181 String actual = runQuery (query , Result ::resultAsString );
@@ -190,15 +188,14 @@ void shouldWriteWithCypherProjection() {
190188 String query = " CALL gds.triangleCount.write({" +
191189 " nodeQuery: 'MATCH (p:Person) RETURN id(p) AS id'," +
192190 " 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 +
202199 "1 row" + NL ;
203200
204201 String actual = runQuery (query , Result ::resultAsString );
0 commit comments