function dijkstra syntax from java

38 views
Skip to first unread message

sck2015

unread,
Mar 24, 2015, 6:33:01 PM3/24/15
to orient-...@googlegroups.com
hi everyone, can someone tell me the correct syntax to pass a direction to the osqlfunctiondijkstra execute, this is failing:

  Vertex s, e;
  final List<OrientVertex> result = functionDijkstra.execute(null, null, null, new Object[] { s, e, "'weight'", new Object [] {"'both'" } }, new OBasicCommandContext());

Lvc@

unread,
Mar 27, 2015, 7:36:11 AM3/27/15
to orient-...@googlegroups.com
Hi,
Try this:

final List<OrientVertex> result = functionDijkstra.execute(null, null, null, new Object[] { s, e, "'weight'", "both" } }, new OBasicCommandContext());

Lvc@
Reply all
Reply to author
Forward
0 new messages