Skip to content
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

Add semantic of Sample/Limit per vertex exploration/GetNeighbors #4084

Open
wey-gu opened this issue Mar 25, 2022 · 0 comments
Open

Add semantic of Sample/Limit per vertex exploration/GetNeighbors #4084

wey-gu opened this issue Mar 25, 2022 · 0 comments
Labels
type/feature req Type: feature request

Comments

@wey-gu
Copy link
Contributor

wey-gu commented Mar 25, 2022

Is your feature request related to a problem? Please describe.
In GNN or other application use cases like (get 100 players and explore to get their followers, limit 2 per each )

Describe the solution you'd like

This is feasible/doable as the GetNeighbors limit pushdown is ready, right?

Could be SAMPLE/LIMIT before YIELD? like:

  • This is to SAMPLE over single GetNeighbors
lookup on player YIELD id(vertex) AS VertexID | limit 5 | GO FROM $-.VertexID OVER follow SAMPLE [2] YIELD $^.player.name AS album, properties($$) AS photo 
  • This is to SAMPLE overall on this step:
lookup on player YIELD id(vertex) AS VertexID | limit 5 | GO FROM $-.VertexID OVER follow  YIELD $^.player.name AS album, properties($$) AS photo SAMPLE [10]

Describe alternatives you've considered

Or use different keywords in the above position?

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

1 participant