fixed dijkstra memleak
new dijkstra interfaces and abort options refactored all files accordingly enable logging via compile-time defines
This commit is contained in:
@@ -49,7 +49,7 @@ public:
|
||||
gen.seed(1234);
|
||||
|
||||
// build all shortest path to reach th target
|
||||
dijkstra.build(target, target, acc);
|
||||
dijkstra.build(&target, acc);
|
||||
|
||||
// attach a corresponding weight-information to each user-grid-node
|
||||
for (T& node : grid) {
|
||||
|
||||
@@ -45,7 +45,7 @@ public:
|
||||
gen.seed(1234);
|
||||
|
||||
// build all shortest path to reach th target
|
||||
dijkstra.build(target, target, acc);
|
||||
dijkstra.build(&target, acc);
|
||||
|
||||
// attach a corresponding weight-information to each user-grid-node
|
||||
for (T& node : grid) {
|
||||
|
||||
@@ -108,7 +108,7 @@ public:
|
||||
gen.seed(1234);
|
||||
|
||||
// build all shortest path to reach th target
|
||||
dijkstra.build(target, target, acc);
|
||||
dijkstra.build(&target, acc);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user