@@ -20,8 +20,8 @@ MERGE (chris)-[:KNOWS]->(karin);
2020
2121// tag::stream-triples[]
2222
23- CALL algo .triangle .stream ('Person' ,'KNOWS' )
24- yield nodeA ,nodeB ,nodeC
23+ CALL algo .triangle .stream ('Person' ,'KNOWS' )
24+ YIELD nodeA ,nodeB ,nodeC
2525
2626MATCH (a :Person ) WHERE id (a ) = nodeA
2727MATCH (b :Person ) WHERE id (b ) = nodeB
@@ -35,14 +35,14 @@ RETURN a.id AS nodeA, b.id AS nodeB, c.id AS nodeC
3535// tag::triangle-write-sample-graph[]
3636
3737CALL algo .triangleCount ('Person' , 'KNOWS' ,
38- { concurrency : 4 , write : true , writeProperty : 'triangles' , clusteringCoefficientProperty : 'coefficient' } )
38+ { concurrency : 4 , write : true , writeProperty : 'triangles' , clusteringCoefficientProperty : 'coefficient' } )
3939YIELD loadMillis , computeMillis , writeMillis , nodeCount , triangleCount , averageClusteringCoefficient ;
4040
4141// end::triangle-write-sample-graph[]
4242
4343// tag::triangle-stream-sample-graph[]
4444
45- CALL algo .triangleCount .stream ('Person' , 'KNOWS' , { concurrency : 4 } )
45+ CALL algo .triangleCount .stream ('Person' , 'KNOWS' , { concurrency : 4 } )
4646YIELD nodeId , triangles , coefficient
4747
4848MATCH (p :Person ) WHERE id (p ) = nodeId
@@ -55,7 +55,7 @@ ORDER BY coefficient DESC
5555// tag::triangle-write-yelp[]
5656
5757CALL algo .triangleCount ('User' , 'FRIEND' ,
58- { concurrency : 4 , write : true , writeProperty : 'triangles' , clusteringCoefficientProperty : 'coefficient' } )
58+ { concurrency : 4 , write : true , writeProperty : 'triangles' , clusteringCoefficientProperty : 'coefficient' } )
5959YIELD loadMillis , computeMillis , writeMillis , nodeCount , triangleCount , averageClusteringCoefficient ;
6060
6161// end::triangle-write-yelp[]
@@ -65,7 +65,7 @@ YIELD loadMillis, computeMillis, writeMillis, nodeCount, triangleCount, averageC
6565CALL algo .triangleCount (
6666 'MATCH (p:Person) RETURN id(p) as id' ,
6767 'MATCH (p1:Person)-[:KNOWS]->(p2:Person) RETURN id(p1) as source,id(p2) as target' ,
68- { concurrency : 4 , write : true , writeProperty : 'triangle' , graph : 'cypher' , clusteringCoefficientProperty : 'coefficient' } )
69- yield loadMillis , computeMillis , writeMillis , nodeCount , triangleCount , averageClusteringCoefficient
68+ { concurrency : 4 , write : true , writeProperty : 'triangle' , graph : 'cypher' , clusteringCoefficientProperty : 'coefficient' } )
69+ YIELD loadMillis , computeMillis , writeMillis , nodeCount , triangleCount , averageClusteringCoefficient
7070
7171// end::cypher-loading[]
0 commit comments