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

Support recursion #29

Open
ktk opened this issue Mar 11, 2020 · 3 comments
Open

Support recursion #29

ktk opened this issue Mar 11, 2020 · 3 comments

Comments

@ktk
Copy link
Member

ktk commented Mar 11, 2020

No description provided.

@ktk
Copy link
Member Author

ktk commented Mar 11, 2020

From https://tinkerpop.apache.org/gremlin.html, click on example 3

Something like:

g.V().has("name","gremlin").
  repeat(in("manages")).
    until(has("title","ceo")).
  path().by("name")

@ktk
Copy link
Member Author

ktk commented Mar 11, 2020

@martinmaillard could you give an example for what you had in mind?

@martinmaillard
Copy link
Contributor

What I was trying to solve was: "find all the subclasses of a class". Since it is inherently a recursive query, I don't think there is a way to solve it with the current API. But I don't really have a solution in mind.

Gremlin's repeat + until would probably work, but I'm not sure how it would look like in clownface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants