orientdb
orientdb copied to clipboard
I need a interface OrientGraph.addEdge(Object id, Vertex outVertex, Vertex inVertex, int positionInOutVertex)
the argument "positionInOutVertex" is the new edge position in all out edges of outVertex. all the vertex in my graph make up a big tree. I need to know and change the order of children of one vertex.
I can save all the children ids to a ArrayList, and save it to a parent property. but it has two disadvantages 1 if I add a new child or change the position of one child, I must add the ArrayList the parent again. It bring a no needed I/O. 2 I must commit the graph, to get the finally id of the new child before adding the id to the arraylist