Hi,

Also, there table-step documentation for Gremlin is in "Pattern Match Pattern":
        https://github.com/tinkerpop/gremlin/wiki/Pattern-Match-Pattern

Side note:

 t = t.collect {
   outN = it.outV.toList().get(0);
   inN  = it.inV.toList().get(0);
   [outN.type, outN.key, inN.type, inN.key].join(",");
 };

..it is more efficient to do:

 t = t.collect {
   outN = it.outV.next();
   inN  = it.inV.next();
   [outN.type, outN.key, inN.type, inN.key].join(",");
 };


Though, as you say, probably best to use 'table' with column closures.

If you can frame you questions in terms of the graph diagrammed here 
https://github.com/tinkerpop/gremlin/wiki/Defining-a-Property-Graph , it will 
be much easier for us to tell you the answer than to parse your code which 
don't understand the underlying data model.

Good luck,
Marko.

http://markorodriguez.com

On Sep 11, 2011, at 10:29 AM, Peter Neubauer wrote:

> Xavier,
> also, for the table construction, have a look at the example at
> http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html#rest-api-send-a-gremlin-script---json-encoded-with-table-results,
> if that helps?
> 
> Cheers,
> 
> /peter neubauer
> 
> GTalk:      neubauer.peter
> Skype       peter.neubauer
> Phone       +46 704 106975
> LinkedIn   http://www.linkedin.com/in/neubauer
> Twitter      http://twitter.com/peterneubauer
> 
> http://www.neo4j.org               - Your high performance graph database.
> http://startupbootcamp.org/    - Ă–resund - Innovation happens HERE.
> http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.
> 
> 
> 
> On Sun, Sep 11, 2011 at 5:35 PM, Xavier Shay <[email protected]> 
> wrote:
>> I feel I should be able to use the Table object, but couldn't figure it out
>> (is there explicit API documentation for it anywhere?)
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to