cancel
Showing results for 
Search instead for 
Did you mean: 

Join the community at Nodes 2022, our free virtual event on November 16 - 17.

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

saisannihith741
Node Clone

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

4 REPLIES 4

glilienfield
Ninja
Ninja

How are you defining level?

saisannihith741
Node Clone

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

saisannihith741
Node Clone

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

glilienfield
Ninja
Ninja

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