-
Notifications
You must be signed in to change notification settings - Fork 256
feat: add bidirectional motif pattern #717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
|
SemyonSinchenko
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~LGTM
|
@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.