Skip to content

Commit

Permalink
[drivingdistance] Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aryan1010 committed Aug 23, 2023
1 parent 418d565 commit 831fec9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions include/dijkstra/drivingDist.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ class Pgr_dijkstra {
namespace functions {

template <class G>
class ShortestPath_tree{
class ShortestPath_trees{
typedef typename G::V V;
typedef typename G::E E;
typedef typename G::B_G B_G;
Expand Down Expand Up @@ -534,7 +534,7 @@ class ShortestPath_tree{
template <class G>
template <typename T>
std::deque<MST_rt>
ShortestPath_tree<G>::get_results(
ShortestPath_trees<G>::get_results(
T order,
int64_t p_root,
const G &graph) {
Expand Down Expand Up @@ -591,7 +591,7 @@ ShortestPath_tree<G>::get_results(

template <class G>
std::deque<MST_rt>
ShortestPath_tree<G>::dfs_order(const G &graph, int64_t root) {
ShortestPath_trees<G>::dfs_order(const G &graph, int64_t root) {
boost::filtered_graph<B_G, InSpanning, boost::keep_all>
mstGraph(graph.graph, m_spanning_tree, {});

Expand Down Expand Up @@ -630,7 +630,7 @@ ShortestPath_tree<G>::dfs_order(const G &graph, int64_t root) {

template <class G>
void
ShortestPath_tree<G>::get_edges_from_path(
ShortestPath_trees<G>::get_edges_from_path(
const G& graph,
const Path path) {
m_spanning_tree.clear();
Expand Down Expand Up @@ -658,7 +658,7 @@ ShortestPath_tree<G>::get_edges_from_path(

template <class G>
std::deque<MST_rt>
ShortestPath_tree<G>::get_depths(
ShortestPath_trees<G>::get_depths(
G &graph,
std::deque<Path> paths) {
std::deque<MST_rt> results;
Expand Down
4 changes: 2 additions & 2 deletions src/driving_distance/drivedist_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ do_pgr_driving_many_to_dist(
paths = pgr_drivingdistance(
digraph, start_vertices, distance, equiCostFlag, log);
if (do_new) {
pgrouting::functions::ShortestPath_tree<pgrouting::DirectedGraph> spt;
pgrouting::functions::ShortestPath_trees<pgrouting::DirectedGraph> spt;
results = spt.get_depths(digraph, paths);
}
} else {
Expand All @@ -97,7 +97,7 @@ do_pgr_driving_many_to_dist(
paths = pgr_drivingdistance(
undigraph, start_vertices, distance, equiCostFlag, log);
if (do_new) {
pgrouting::functions::ShortestPath_tree<pgrouting::UndirectedGraph> spt;
pgrouting::functions::ShortestPath_trees<pgrouting::UndirectedGraph> spt;
results = spt.get_depths(undigraph, paths);
}
}
Expand Down

0 comments on commit 831fec9

Please sign in to comment.