mirror of https://gitee.com/bigwinds/arangodb
fixed wrong order of from and to
This commit is contained in:
parent
fcc950119c
commit
0274fbf6ba
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue