diff --git a/js/server/modules/org/arangodb/aql.js b/js/server/modules/org/arangodb/aql.js index 3d51444a27..33daf2a96e 100644 --- a/js/server/modules/org/arangodb/aql.js +++ b/js/server/modules/org/arangodb/aql.js @@ -5740,7 +5740,7 @@ function CALCULATE_SHORTEST_PATHES_WITH_FLOYD_WARSHALL (graphData, options) { paths[e._to] = {}; } paths[e._to][e._from] = {distance : DETERMINE_WEIGHT(e, options.weight, - options.defaultWeight), paths : [{edges : [e], vertices : [e._from, e._to]}]}; + options.defaultWeight), paths : [{edges : [e], vertices : [e._to, e._from]}]}; } else { if (!paths[e._from]) { paths[e._from] = {}; @@ -5763,7 +5763,7 @@ function CALCULATE_SHORTEST_PATHES_WITH_FLOYD_WARSHALL (graphData, options) { options.defaultWeight)); } else { paths[e._to][e._from] = {distance : DETERMINE_WEIGHT(e, options.weight, - options.defaultWeight), paths : [{edges : [e], vertices : [e._from, e._to]}]}; + options.defaultWeight), paths : [{edges : [e], vertices : [e._to, e._from]}]}; } } if (options.noPaths) {