cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Can you plot the number of paths as a function of level?

can you plot the number of paths as a function of level?
Could anybody help me the answer with the question

4 REPLIES 4

How are you defining level?

MATCH p=(b:Vendor)-[*0..30]->(child)
where (child:MatPlant or child:Customer) and b.node_id="US1|0010764006"
and NONE( rel in relationships(p) WHERE type(rel)="VendorToVendorPurchaseOrder")
optional match (child)--(wc:WorkCenter)
return p

this is the query which we are using [*0..30] as levels

Ah, you can get the path length with length(p)