-
Notifications
You must be signed in to change notification settings - Fork 257
Improve result formatting for variable length pattern and undirected pattern #728
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
Conversation
|
Now, it make sense to me. Please merge this improvement before releasing the new version. |
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.
Thanks for this @goungoun
|
While checking the examples in the manual, I found a bug and fixed. The named edge pattern |
|
@SemyonSinchenko, I pushed the document changes, 04-motif-finding.md. |
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.
Nice! Thanks @goungoun
|
Thank you, @SemyonSinchenko. |
What changes were proposed in this pull request?
This PR improves the formatting for the variable-length and undirected motif pattern.
_hop,_pattern,_directionThe first edge column name for the fixed pattern
(u)-[e*1]-(v)and the variable length pattern should be_e1, note, so that it matches with the other column.Case 1: undirected pattern
g.find("(u)-[]-(v)").where("u.id == 0").show()
Before:
It took me quite some time to understand why it returns two rows, not three rows. The bidirectional edge returns one with the anonymous edge pattern.
After:
It returns three rows with the information, two
inedges and oneoutedge.Case 2: undirected variable-length pattern
g.find("(v)-[e*1..3]-(u)").where("u.id == 2").show()
Before:
Cannot understand why
ecolumn is placed at the end of the data frame, and not easy to understand the result.After:
The informative columns such as
_hop,_pattern,_directionis added to help understand the results. It also ordered by_hop,_direction.