PGROUTING
3.2
|
#include "pgr_bellman_ford.hpp"
Public Types | |
typedef G::E | E |
typedef G::V | V |
Public Member Functions | |
std::string | get_error () const |
get_error More... | |
std::string | get_log () const |
get_log More... | |
std::string | get_notice () const |
get_notice More... | |
bool | has_error () const |
get_error More... | |
Public Attributes | |
std::ostringstream | error |
Stores the error information. More... | |
std::ostringstream | log |
Stores the hint information. More... | |
std::ostringstream | notice |
Stores the notice information. More... | |
Private Attributes | |
members | |
std::vector< V > | predecessors |
std::vector< double > | distances |
BellmanFord | |
Path | bellman_ford (G &graph, int64_t start_vertex, int64_t end_vertex, bool only_cost=false) |
BellmanFord 1 to 1. More... | |
std::deque< Path > | bellman_ford (G &graph, int64_t start_vertex, const std::vector< int64_t > &end_vertex, bool only_cost=false) |
BellmanFord 1 to many. More... | |
std::deque< Path > | bellman_ford (G &graph, const std::vector< int64_t > &start_vertex, int64_t end_vertex, bool only_cost=false) |
std::deque< Path > | bellman_ford (G &graph, const std::vector< int64_t > &start_vertex, const std::vector< int64_t > &end_vertex, bool only_cost=false) |
std::deque< Path > | bellman_ford (G &graph, const std::vector< pgr_combination_t > &combinations, bool only_cost=false) |
bool | bellman_ford_1_to_1 (G &graph, V source) |
Call to BellmanFord 1 source to 1 target. More... | |
bool | bellman_ford_1_to_many (G &graph, V source) |
Call to BellmanFord 1 source to many targets. More... | |
void | clear () |
std::deque< Path > | get_paths (const G &graph, V source, std::vector< V > &targets, bool only_cost) const |
Definition at line 53 of file pgr_bellman_ford.hpp.
typedef G::E Pgr_bellman_ford< G >::E |
Definition at line 56 of file pgr_bellman_ford.hpp.
typedef G::V Pgr_bellman_ford< G >::V |
Definition at line 55 of file pgr_bellman_ford.hpp.
|
inline |
Definition at line 158 of file pgr_bellman_ford.hpp.
References Pgr_bellman_ford< G >::bellman_ford(), and pgrouting::Pgr_messages::log.
|
inline |
Definition at line 137 of file pgr_bellman_ford.hpp.
References Pgr_bellman_ford< G >::bellman_ford(), and pgrouting::Pgr_messages::log.
|
inline |
Definition at line 185 of file pgr_bellman_ford.hpp.
References Pgr_bellman_ford< G >::bellman_ford(), and pgrouting::Pgr_messages::log.
|
inline |
BellmanFord 1 to many.
Definition at line 97 of file pgr_bellman_ford.hpp.
References Pgr_bellman_ford< G >::bellman_ford_1_to_many(), Pgr_bellman_ford< G >::clear(), Pgr_bellman_ford< G >::distances, Pgr_bellman_ford< G >::get_paths(), pgrouting::Pgr_messages::log, and Pgr_bellman_ford< G >::predecessors.
|
inline |
BellmanFord 1 to 1.
Definition at line 62 of file pgr_bellman_ford.hpp.
Referenced by Pgr_bellman_ford< G >::bellman_ford(), and pgr_bellman_ford().
|
inlineprivate |
Call to BellmanFord 1 source to 1 target.
Definition at line 224 of file pgr_bellman_ford.hpp.
References Pgr_bellman_ford< G >::distances, pgrouting::Pgr_messages::log, and Pgr_bellman_ford< G >::predecessors.
|
inlineprivate |
Call to BellmanFord 1 source to many targets.
Definition at line 251 of file pgr_bellman_ford.hpp.
References Pgr_bellman_ford< G >::distances, pgrouting::Pgr_messages::log, and Pgr_bellman_ford< G >::predecessors.
Referenced by Pgr_bellman_ford< G >::bellman_ford().
|
inlineprivate |
Definition at line 279 of file pgr_bellman_ford.hpp.
References Pgr_bellman_ford< G >::distances, and Pgr_bellman_ford< G >::predecessors.
Referenced by Pgr_bellman_ford< G >::bellman_ford().
|
inherited |
get_error
Definition at line 53 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::error.
Referenced by do_pgr_many_withPointsDD(), do_pgr_pickDeliver(), do_pgr_pickDeliverEuclidean(), do_pgr_withPoints(), do_pgr_withPointsKsp(), and pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver().
|
inherited |
get_log
Definition at line 36 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::log.
Referenced by do_pgr_bipartite(), do_pgr_boyerMyrvold(), do_pgr_LTDTree(), do_pgr_makeConnected(), do_pgr_many_withPointsDD(), do_pgr_pickDeliver(), do_pgr_pickDeliverEuclidean(), do_pgr_withPoints(), do_pgr_withPointsKsp(), pgr_bellman_ford(), pgr_dijkstraTR(), and pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver().
|
inherited |
get_notice
Definition at line 42 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::notice.
|
inlineprivate |
Definition at line 286 of file pgr_bellman_ford.hpp.
References Pgr_bellman_ford< G >::distances, pgrouting::Pgr_messages::log, and Pgr_bellman_ford< G >::predecessors.
Referenced by Pgr_bellman_ford< G >::bellman_ford().
|
inherited |
get_error
Definition at line 48 of file pgr_messages.cpp.
References pgrouting::Pgr_messages::error.
Referenced by do_pgr_many_withPointsDD(), do_pgr_withPoints(), and do_pgr_withPointsKsp().
|
private |
Definition at line 308 of file pgr_bellman_ford.hpp.
Referenced by Pgr_bellman_ford< G >::bellman_ford(), Pgr_bellman_ford< G >::bellman_ford_1_to_1(), Pgr_bellman_ford< G >::bellman_ford_1_to_many(), Pgr_bellman_ford< G >::clear(), and Pgr_bellman_ford< G >::get_paths().
|
mutableinherited |
Stores the error information.
Definition at line 85 of file pgr_messages.h.
Referenced by pgrouting::vrp::Fleet::build_fleet(), pgrouting::Pg_points_graph::check_points(), pgrouting::Pgr_messages::clear(), pgrouting::Pg_points_graph::create_new_edges(), pgrouting::Pgr_messages::get_error(), pgrouting::Pgr_messages::has_error(), pgrouting::vrp::Fleet::is_fleet_ok(), and pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver().
|
mutableinherited |
Stores the hint information.
Definition at line 81 of file pgr_messages.h.
Referenced by pgrouting::vrp::Fleet::add_vehicle(), Pgr_bellman_ford< G >::bellman_ford(), Pgr_bellman_ford< G >::bellman_ford_1_to_1(), Pgr_bellman_ford< G >::bellman_ford_1_to_many(), pgrouting::alphashape::Pgr_alphaShape::build_best_alpha(), pgrouting::vrp::Fleet::build_fleet(), pgrouting::Pg_points_graph::check_points(), pgrouting::Pgr_messages::clear(), pgrouting::Pg_points_graph::create_new_edges(), pgrouting::vrp::Vehicle_pickDeliver::do_while_feasable(), pgrouting::vrp::Initial_solution::do_while_foo(), pgrouting::functions::Pgr_makeConnected< G >::generatemakeConnected(), pgrouting::Pgr_messages::get_log(), Pgr_bellman_ford< G >::get_paths(), pgrouting::vrp::Pgr_pickDeliver::get_postgres_result(), pgrouting::vrp::Vehicle::get_postgres_result(), pgrouting::vrp::Fleet::get_truck(), pgrouting::vrp::Optimize::inter_swap(), pgrouting::vrp::Fleet::is_fleet_ok(), pgrouting::vrp::Initial_solution::one_truck_all_orders(), pgrouting::vrp::Optimize::Optimize(), pgrouting::Pg_points_graph::Pg_points_graph(), pgrouting::vrp::Pgr_pickDeliver::Pgr_pickDeliver(), pgrouting::vrp::Optimize::save_if_best(), pgrouting::vrp::Solution::Solution(), pgrouting::vrp::Pgr_pickDeliver::solve(), and pgrouting::vrp::Vehicle::Vehicle().
|
mutableinherited |
Stores the notice information.
Definition at line 83 of file pgr_messages.h.
Referenced by pgrouting::Pgr_messages::clear(), and pgrouting::Pgr_messages::get_notice().
|
private |
Definition at line 307 of file pgr_bellman_ford.hpp.
Referenced by Pgr_bellman_ford< G >::bellman_ford(), Pgr_bellman_ford< G >::bellman_ford_1_to_1(), Pgr_bellman_ford< G >::bellman_ford_1_to_many(), Pgr_bellman_ford< G >::clear(), and Pgr_bellman_ford< G >::get_paths().