1
0
Fork 0

fixed wrong order of from and to

This commit is contained in:
Frank Celler 2015-05-29 15:06:29 +02:00
parent fcc950119c
commit 0274fbf6ba
1 changed files with 2 additions and 2 deletions

View File

@ -5740,7 +5740,7 @@ function CALCULATE_SHORTEST_PATHES_WITH_FLOYD_WARSHALL (graphData, options) {
paths[e._to] = {}; paths[e._to] = {};
} }
paths[e._to][e._from] = {distance : DETERMINE_WEIGHT(e, options.weight, 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 { } else {
if (!paths[e._from]) { if (!paths[e._from]) {
paths[e._from] = {}; paths[e._from] = {};
@ -5763,7 +5763,7 @@ function CALCULATE_SHORTEST_PATHES_WITH_FLOYD_WARSHALL (graphData, options) {
options.defaultWeight)); options.defaultWeight));
} else { } else {
paths[e._to][e._from] = {distance : DETERMINE_WEIGHT(e, options.weight, 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) { if (options.noPaths) {