1
0
Fork 0
arangodb/Documentation/Examples/generalGraphModuleShortestP...

19 lines
486 B
Plaintext

arangosh> var examples = require("org/arangodb/graph-examples/example-graph.js");
arangosh> var g = examples.loadGraph("routeplanner");
arangosh> g._shortestPath([{_id: 'germanCity/Cologne'},{_id: 'germanCity/Munich'}], 'frenchCity/Lyon',
........> {weight : 'distance'});
[
[
{
"vertices" : [
"germanCity/Cologne",
"frenchCity/Lyon"
],
"edges" : [
"internationalHighway/1756230539"
],
"distance" : 1
}
]
]