You can use this code
Vertex v = g.addVertex("class:BUS");
v.setProperty("Name", "hyd");
Vertex v1=g.addVertex("class:STATION");
v1.setProperty("name", "sec");
Edge edge=v.addEdge("DISTANCE", v1);
Hope it helps.
Kind regards,
Alessandro
--
---
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.
