Closed tacone closed 9 years ago
Hello, after much digging I found a solution inside the Tinkerpop 3.0.0M6 documentation (yes, the previous version).
val graph = TinkerGraph.open()
var gs = GremlinScala(graph)
val vertex = gs.addVertex("hello")
var vertex2 = gs.addVertex("world")
vertex.addEdge("followed_by", vertex2, Map())
val result = graph.V.outE().`match`(
"a",
graph.of().as("a").inV().as("b")
).select()
Hope it will be useful for somebody else.
Bye!
Thanks for sharing. I will provide a sample usage for all steps, however at the moment the API is moving too much and my time is limited.
Hello, could you add an example on how to perform the match-select pattern with gremilin scala?
This is an example from the Tinkerpop documentation:
Being a total newcomer I tried to invoke the match step on a GremlinScala class, but seems to me it's not implemented yet. Then I tried to invoke it directly on the graph object. This is the code I have right now:
Which does not seem to work. What should I substitute to
__
to have the code compile?Perhaps a little example in the readme would help many others :)