Skip to content

Commit f5e6b09

Browse files
committed
added restriction parameter to pgr_dijkstraTRSO
1 parent 66b87bc commit f5e6b09

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/dijkstraTRSP/src/dijkstraTRSP_driver.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,20 @@ static
5757
Path
5858
pgr_dijkstraTRSP(
5959
G &graph,
60+
const std::vector<Restrict_t>& restrictions_array,
6061
int64_t source,
6162
int64_t target,
6263
bool only_cost = false,
6364
bool strict = false) {
64-
Path path = fn_TRSP.dijkstraTRSP(digraph,
65+
Pgr_dijkstraTRSP< G > fn_TRSP;
66+
Path path = fn_TRSP.dijkstraTRSP(graph,
6567
restrictions_array,
66-
start_vid,
67-
end_vid,
68+
source,
69+
target,
6870
only_cost,
6971
strict);
7072
log << fn_TRSP.log.str();
73+
return path;
7174
}
7275
#endif
7376

0 commit comments

Comments
 (0)