clownface icon indicating copy to clipboard operation
clownface copied to clipboard

Support recursion

Open ktk opened this issue 5 years ago • 3 comments

ktk avatar Mar 11 '20 13:03 ktk

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 avatar Mar 11 '20 13:03 ktk

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

ktk avatar Mar 11 '20 13:03 ktk

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.

martinmaillard avatar Mar 12 '20 09:03 martinmaillard