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
Post a Comment