[Neo4j] Gremlin syntax for multiple paths in one call
okrammarko at gmail.com
Tue Oct 4 17:19:50 CEST 2011
> If I want to get the following
This is the world of split and merge. The syntax for this is not the sexiest, but as it stands:
copySplit will take what comes into it and copy it to its internal pipes (in this case, 2 internal pipes). Then fairMerge will, in a round robin fashion, merge the output of the two internal pipes into a single pipe. Thus, split the pipeline, then merge it back into a single pipeline.
For example, over the play TinkerPop graph:
gremlin> g = TinkerGraphFactory.createTinkerGraph()
We haven't developed split/merge much. If you have any ideas for syntax, that'd be great.
NOTE: If they were both out, then you can simply do: g.v(0).out('friends','likes')
More information about the User