function dijkstra syntax from java

38 katselukertaa
Siirry ensimmäiseen lukemattomaan viestiin

sck2015

lukematon,
24.3.2015 klo 18.33.0124.3.2015
vastaanottaja 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@

lukematon,
27.3.2015 klo 7.36.1127.3.2015
vastaanottaja orient-...@googlegroups.com
Hi,
Try this:

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

Lvc@
Vastaa kaikille
Vastaa kirjoittajalle
Välitä
0 uutta viestiä