arangosh> var examples = require("@arangodb/graph-examples/example-graph.js");
arangosh> var g = examples.loadGraph("routeplanner");
arangosh> db._query("RETURN GRAPH_ABSOLUTE_CLOSENESS("
........> + "'routeplanner', {}, {startVertexCollectionRestriction: 'germanCity', " +
........> "direction: 'outbound', weight: 'distance'})").toArray();
[
{
"germanCity/Cologne" : 1250,
"germanCity/Hamburg" : 2600,
"germanCity/Berlin" : 3550
}
]