Skip to content

what is the purpose of Traverse, please? #4228

Answered by jievince
wey-gu asked this question in Q&A
Discussion options

You must be logged in to vote

GetNeighbors is a one-hop expand,
and Traverse is a multi-hop expand.
Indeed, the implementation of Traverse uses GetNeighbors to do the expansion of every hop.

update: I realize it's part of the multiple pattern support?

Yes, Traverse is easy to do the pattern like -[:like*1..3]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wey-gu
Comment options

wey-gu May 6, 2022
Collaborator Author

Answer selected by wey-gu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants