cancel
Showing results for 
Search instead for 
Did you mean: 

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)

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

On November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.