Hi,
I am trying to get all the in and out nodes from the node using java and
gremlin i tried bel;ow and able to get all the node ids now i want to get
the properties also.
below is the code and output
GremlinPipeline<String, List> sources =new
GremlinPipeline().start((graph.getVertices("name", "HEY BO
DIDDLEY"))).bothE().outV().path();
Iterator iter = sources.iterator();
while(iter.hasNext()) {
System.out.println("-it--"+iter.next());
}
}
output:
-it--[v[#9:1], e[#11:0][#9:1-followed_by->#9:2], v[#9:1]] -it--[v[#9:1],
e[#11:1][#9:1-followed_by->#9:3], v[#9:1]] -it--[v[#9:1],
e[#11:2][#9:1-followed_by->#9:4], v[#9:1]] -it--[v[#9:1],
e[#11:3][#9:1-followed_by->#9:5], v[#9:1]] -it--[v[#9:1],
e[#11:4][#9:1-followed_by->#9:6], v[#9:1]] -it--[v[#9:1],
e[#12:0][#9:1-written_by->#9:7], v[#9:1]] -it--[v[#9:1],
e[#13:0][#9:1-sung_by->#9:8], v[#9:1]] -it--[v[#9:1],
e[#11:745][#9:3-followed_by->#9:1], v[#9:3]] -it--[v[#9:1],
e[#11:713][#9:5-followed_by->#9:1], v[#9:5]] -it--[v[#9:1],
e[#11:2407][#9:145-followed_by->#9:1], v[#9:145]] -it--[v[#9:1],
e[#11:6235][#9:124-followed_by->#9:1], v[#9:124]]
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.