|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Functor wrapper for Eppstein-style k-shortest paths API. More...
#include <K_Shortest_Paths.H>
Public Member Functions | |
| Eppstein_K_Shortest_Paths (Distance distance=Distance(), SA sa=SA()) | |
| DynList< K_Shortest_Path_Item< GT, typename Distance::Distance_Type > > | operator() (const GT &g, typename GT::Node *source, typename GT::Node *target, const size_t k) const |
| Compute k shortest general (loopy) paths. | |
Private Attributes | |
| Distance | distance_ |
| SA | sa_ |
Functor wrapper for Eppstein-style k-shortest paths API.
Definition at line 1221 of file K_Shortest_Paths.H.
|
inline |
Definition at line 1227 of file K_Shortest_Paths.H.
|
inline |
Compute k shortest general (loopy) paths.
Wrapper for eppstein_k_shortest_paths using the stored distance and filter.
| [in] | g | Graph. |
| [in] | source | Source node. |
| [in] | target | Target node. |
| [in] | k | Maximum number of paths to return. |
DynList<K_Shortest_Path_Item<GT, Cost_Type>> containing the paths found.| std::domain_error | If source or target is null. |
| std::domain_error | If negative arc weights are detected. |
eppstein_k_shortest_paths: O(E + V log V + k * log k).Definition at line 1255 of file K_Shortest_Paths.H.
References Aleph::Eppstein_K_Shortest_Paths< GT, Distance, SA >::distance_, Aleph::divide_and_conquer_partition_dp(), k, and Aleph::Eppstein_K_Shortest_Paths< GT, Distance, SA >::sa_.
|
private |
Definition at line 1223 of file K_Shortest_Paths.H.
Referenced by Aleph::Eppstein_K_Shortest_Paths< GT, Distance, SA >::operator()().
|
private |
Definition at line 1224 of file K_Shortest_Paths.H.
Referenced by Aleph::Eppstein_K_Shortest_Paths< GT, Distance, SA >::operator()().