Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mneedham committed Mar 13, 2019
1 parent fee6aa9 commit d03622a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/asciidoc/label-propagation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ include::scripts/label-propagation.cypher[tag=cypher-loading]
.The following will run the algorithm and write back results:
[source, cypher]
----
CALL algo.labelPropagation(label:String, relationship:String, direction:String, {iterations:1,
CALL algo.labelPropagation(label:String, relationship:String, {iterations:1,
weightProperty:'weight', writeProperty:'partition', write:true, concurrency:4})
YIELD nodes, iterations, didConverge, loadMillis, computeMillis, writeMillis, write, weightProperty, writeProperty
----
Expand Down
13 changes: 6 additions & 7 deletions doc/asciidoc/scripts/label-propagation.cypher
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ CALL algo.labelPropagation.stream("User", "FOLLOW",

// tag::write-sample-graph[]

CALL algo.labelPropagation('User', 'FOLLOW','OUTGOING',
{iterations:10,partitionProperty:'partition', write:true})
YIELD nodes, iterations, loadMillis, computeMillis, writeMillis, write, partitionProperty;
CALL algo.labelPropagation('User', 'FOLLOW',
{iterations:10, writeProperty:'partition', write:true, direction: 'OUTGOING'})
YIELD nodes, iterations, loadMillis, computeMillis, writeMillis, write, writeProperty;

// end::write-sample-graph[]


// tag::write-existing-label-sample-graph[]

CALL algo.labelPropagation('User', 'FOLLOW','OUTGOING',
{iterations:10,partitionProperty:'seed_label', write:true})
YIELD nodes, iterations, loadMillis, computeMillis, writeMillis, write, partitionProperty;
CALL algo.labelPropagation('User', 'FOLLOW',
{iterations:10,partitionProperty:'seed_label', writeProperty: "partition", write:true, direction: 'OUTGOING'})
YIELD nodes, iterations, loadMillis, computeMillis, writeMillis, write, writeProperty;

// end::write-existing-label-sample-graph[]

Expand All @@ -72,7 +72,6 @@ CALL algo.labelPropagation(
'MATCH (p:User) RETURN id(p) as id, p.weight as weight, id(p) as value',
'MATCH (p1:User)-[f:FRIEND]->(p2:User)
RETURN id(p1) as source, id(p2) as target, f.weight as weight',
"OUT",
{graph:'cypher',write:true});

// end::cypher-loading[]
Expand Down

0 comments on commit d03622a

Please sign in to comment.