java - Navigate through a "chain" in OrientDB -


background:

i new in orientdb, test in java days see if db need.

context:

suppose have similar linkedlist, made vertex , (o) edges (-):

o - o - o - o - o - o - o - o

each vertex has field called "name" , edge labeled "bestfriend".

question:

i need print names of of vertex of "chain". there way or api method navigate through entire list in fast way, complexity < o(n)?

thank you

try like:

select name ( traverse out('bestfriend') #10:44 ) 

assuming #10:44 root vertex's id.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -