Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-31-2022 02:13 AM - edited 08-31-2022 04:25 AM
Anybody a good idea to use apoc.path.extendconfig to filter the paths where first and last node is the same,
Finding only circular paths?
end node must be equal to the begin node in variable lenght path
Or is unwinding the only solution?
08-31-2022 05:39 AM
Maybe try setting the "terminatorNodes" list in the config to the start node, i.e. [<startNode>].
08-31-2022 01:08 PM
Ok, that is something I can try. Would be nice feature for apoc.
09-03-2022 02:20 AM
I'm looking at the apoc.nodes.cylces function.
This is part of my grapgh, for 1 tank ( I have 54 tanks)
To list the nodes of the returned paths I use:
MATCH (p:Tank {Name:'T0104'})
with collect (p) as mynodes
CALL apoc.nodes.cycles(mynodes,{relTypes: ['CanCirculate']}) YIELD path
WITH ([n IN nodes(path) | n.Name] ) AS PathNodes
RETURN PathNodes
All the sessions of the conference are now available online