feat: add bidirectional motif pattern #717
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #717 +/- ##
==========================================
+ Coverage 86.06% 86.63% +0.57%
==========================================
Files 63 63
Lines 2907 2889 -18
Branches 327 327
==========================================
+ Hits 2502 2503 +1
+ Misses 405 386 -19 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@rjurney Please, take a look! |
|
@SemyonSinchenko Thank you for your help! |
|
@rjurney I want to see this feature in a new release and from my point of view, it is a time to start preparing it. What do you think? |
|
In a meantime, @goungoun can I ask you to provide small updates for the documentation? |
|
I'm merging it now to make it a part of the new release. |
What changes were proposed in this pull request?
This PR implements a bidirectional motif pattern as a patterns that exist in both directions.

How does it work?
It rewrites the incoming pattern string before calling the
Pattern.parsemethod.For the bidirectional pattern,
(u)<-[]->(v)is converted to(u)-[]->(v);(v)-[]->(u)It also supports the reversed pattern
(u)<-[]-(v). It converts to the pattern(v)-[]->(u)Why are the changes needed?
The feature is based on issue #502. The opinion is that it confuses users without the feature.