Add scenarios around pattern matching and self-loops#162
Conversation
|
I think this does not reflect our last discussion on this, does it? Perhaps something worth picking up w Nadime, esp. |
|
@boggle You're right, it doesn't. I'll update it. |
There is lots of confusion around how self-relationships (or loops) are matched by patterns. These scenarios aim to outline how this is supposed to work, and how it differs from simple relationship matching.
Path equality is currently ill-defined for paths that traverse a single self-relationship, as it makes the exact same triple of node-rel-node unequal to itself when traversed in the reverse direction.
Rename feature (it isn't simple)
|
Updated with latest thinking. Please also see #192. |
|
Most of these scenarios are fine. But the ones where you could argue that direction would matter are missing. These are scenarios matching paths over loops. Scenarios like this: |
|
While I agree with the pattern matching semantics for loops outlined here, I'm not convinced about how this extends to paths in #192, perhaps pattern matching should be considered a separate thing from path matching (at which point perhaps regular path patterns should be required for path matching). |
There is lots of confusion around how self-relationships (or loops) are
matched by patterns. These scenarios aim to outline how this is supposed
to work, and how it differs from simple relationship matching.