APOC.Path.expand and MUST BE circular paths

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?

Ok, that is something I can try. Would be nice feature for apoc.

Maybe try setting the "terminatorNodes" list in the config to the start node, i.e. [].

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

I get only 1 path of nodes where I have multiple cycles available.

T0104, T0104Main, V13_1, P1104, P1104C, T0104Circ, T0104

Options like

T0104, T0104Main, V11_1, P1104, P1104C, T0104Circ, T0104

T0104, T0104Main, V12_1, P1104, P1104C, T0104Circ, T0104

..

T0104, T0104Main, V11_1, P1107, P1107C, T0104Circ, T0104

What is going wrong. Why is are not all cycles returned?