I don't know if you can use the pipes approach for this kind of algos
with best performance.
Also, you could have your query shorter and use "both" as direction
maybe? g.v(1).out.in sounds not like an undirected traversal.
Something like
g.v(1).as('x').both.loop('x'){it.loops < 4 & it.object.id
!=3}[[id:3]].paths maybe?
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.
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.
Boris,
Will check it out next week, if that is ok?
/peter
Sent from my phone.
FTIW: I saw a post from Marko that said that adding () reduces reflection time, so I have been habituating to it ;)