How to get getEdgesBetweenVertexes in GraphFactory or RawGraph?

101 views
Skip to first unread message

Shishya

unread,
Mar 19, 2014, 2:09:59 AM3/19/14
to orient-...@googlegroups.com
I see that OgraphDatabase getEdgesBetweenVertexes has been deprecated.
is there some other method to get vertices using GraphFactory or rawGraph

OrientGraphFactory factory = new OrientGraphFactory("remote:localhost:2424/db","root","password").setupPool(1, 10);
factory
.getTx().getRawGraph().declareIntent(new OIntentMassiveInsert());
OrientGraph graph = factory.getTx();
if( graph.getRawGraph().getEdgesBetweenVertexes(graph.getVertex("#12:0"),graph.getVertex("#12:1"),"assigned") == null)
 graph
.addEdge("class:assigned",graph.getVertex("#12:0"),graph.getVertex("#12:1"),"assigned");.
.
.
.

 

Luca Garulli

unread,
Mar 19, 2014, 2:13:18 AM3/19/14
to orient-database
Hi,
you can use

public Iterable<Edge> OrientVertex.getEdges(final OrientVertex iDestination, final Direction iDirection, final String... iLabels) 

Lvc@


--

---
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 orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

prabhat

unread,
Mar 19, 2014, 3:16:15 AM3/19/14
to orient-...@googlegroups.com

It seems passed variables types do not match type and count. I get this error

method OrientBaseGraph.getEdges(String,Object) is not applicable
      (actual and formal argument lists differ in length)
    method OrientBaseGraph.getEdges(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method OrientBaseGraph.getEdges() is not applicable
      (actual and formal argument lists differ in length)




--

---
You received this message because you are subscribed to a topic in the Google Groups "OrientDB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orient-database/Q3OOMTOztSE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to orient-databa...@googlegroups.com.

Luca Garulli

unread,
Mar 19, 2014, 3:17:52 AM3/19/14
to orient-database
What language are you using and what's your call?

Lvc@
Reply all
Reply to author
Forward
0 new messages