Improve result formatting for variable length pattern and undirected pattern#728
Merged
SemyonSinchenko merged 8 commits intographframes:mainfrom Oct 12, 2025
Merged
Conversation
Contributor
Author
|
Now, it make sense to me. Please merge this improvement before releasing the new version. |
SemyonSinchenko
approved these changes
Oct 9, 2025
Collaborator
SemyonSinchenko
left a comment
There was a problem hiding this comment.
Thanks for this @goungoun
Contributor
Author
|
While checking the examples in the manual, I found a bug and fixed. The named edge pattern |
Contributor
Author
|
@SemyonSinchenko, I pushed the document changes, 04-motif-finding.md. |
SemyonSinchenko
approved these changes
Oct 12, 2025
Collaborator
SemyonSinchenko
left a comment
There was a problem hiding this comment.
Nice! Thanks @goungoun
Contributor
Author
|
Thank you, @SemyonSinchenko. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.