PGROUTING
3.2
|
#include "pgr_mst.hpp"
Classes | |
struct | InSpanning |
Protected Types | |
typedef G::B_G | B_G |
typedef G::E | E |
typedef G::E_i | E_i |
typedef G::V | V |
Protected Member Functions | |
std::vector< pgr_mst_rt > | bfs_order (const G &graph) |
void | clear () |
std::vector< pgr_mst_rt > | dfs_order (const G &graph) |
virtual void | generate_mst (const G &graph)=0 |
std::vector< pgr_mst_rt > | mst (const G &graph) |
std::vector< pgr_mst_rt > | mstBFS (const G &graph, std::vector< int64_t > roots, int64_t max_depth) |
std::vector< pgr_mst_rt > | mstDD (const G &graph, std::vector< int64_t > roots, double distance) |
std::vector< pgr_mst_rt > | mstDFS (const G &graph, std::vector< int64_t > roots, int64_t max_depth) |
std::vector< pgr_mst_rt > | no_order (const G &graph) |
Protected Attributes | |
std::vector< size_t > | m_components |
m_components[v]: More... | |
double | m_distance |
bool | m_get_component |
int64_t | m_max_depth |
std::vector< int64_t > | m_roots |
struct pgrouting::functions::Pgr_mst::InSpanning | m_spanning_tree |
std::string | m_suffix |
Stores which function is being executed. More... | |
std::vector< int64_t > | m_tree_id |
m_tree_id[v]: More... | |
Private Member Functions | |
std::vector< pgr_mst_rt > | bfs_ordering (const G &graph) |
void | calculate_component (const G &graph) |
std::vector< pgr_mst_rt > | dfs_forest (const G &graph) |
std::vector< pgr_mst_rt > | dfs_ordering (const G &graph) |
template<typename T > | |
std::vector< pgr_mst_rt > | get_results (T order, int64_t p_root, const G &graph) |
bool | no_neg_costs (const G &graph) |
std::vector< pgr_mst_rt > | no_ordering (const G &graph) |
Definition at line 48 of file pgr_mst.hpp.
|
protected |
Definition at line 50 of file pgr_mst.hpp.
|
protected |
Definition at line 52 of file pgr_mst.hpp.
|
protected |
Definition at line 53 of file pgr_mst.hpp.
|
protected |
Definition at line 51 of file pgr_mst.hpp.
|
inlineprotected |
Definition at line 76 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::bfs_ordering().
Referenced by pgrouting::functions::Pgr_mst< G >::mstBFS().
|
inlineprivate |
Definition at line 322 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::calculate_component(), pgrouting::functions::Pgr_mst< G >::get_results(), pgrouting::functions::Pgr_mst< G >::m_roots, pgrouting::functions::Pgr_mst< G >::m_spanning_tree, pgrouting::functions::Pgr_mst< G >::m_tree_id, and pgrouting::functions::Pgr_mst< G >::mst().
Referenced by pgrouting::functions::Pgr_mst< G >::bfs_order().
|
inlineprivate |
Definition at line 225 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::m_components, pgrouting::functions::Pgr_mst< G >::m_get_component, and pgrouting::functions::Pgr_mst< G >::m_tree_id.
Referenced by pgrouting::functions::Pgr_mst< G >::bfs_ordering().
|
inlineprotected |
|
inlineprivate |
Definition at line 255 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::get_results(), and pgrouting::functions::Pgr_mst< G >::m_spanning_tree.
Referenced by pgrouting::functions::Pgr_mst< G >::dfs_ordering().
|
inlineprotected |
Definition at line 71 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::dfs_ordering().
Referenced by pgrouting::functions::Pgr_mst< G >::mstDD(), and pgrouting::functions::Pgr_mst< G >::mstDFS().
|
inlineprivate |
Definition at line 280 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::dfs_forest(), pgrouting::functions::Pgr_mst< G >::get_results(), pgrouting::functions::Pgr_mst< G >::m_roots, and pgrouting::functions::Pgr_mst< G >::m_spanning_tree.
Referenced by pgrouting::functions::Pgr_mst< G >::dfs_order().
|
protectedpure virtual |
|
inlineprivate |
Definition at line 170 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::m_components, pgrouting::functions::Pgr_mst< G >::m_distance, pgrouting::functions::Pgr_mst< G >::m_get_component, pgrouting::functions::Pgr_mst< G >::m_max_depth, pgrouting::functions::Pgr_mst< G >::m_roots, pgrouting::functions::Pgr_mst< G >::m_suffix, and pgrouting::functions::Pgr_mst< G >::m_tree_id.
Referenced by pgrouting::functions::Pgr_mst< G >::bfs_ordering(), pgrouting::functions::Pgr_mst< G >::dfs_forest(), pgrouting::functions::Pgr_mst< G >::dfs_ordering(), and pgrouting::functions::Pgr_mst< G >::no_ordering().
|
inlineprotected |
Definition at line 80 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::generate_mst(), pgrouting::functions::Pgr_mst< G >::m_distance, pgrouting::functions::Pgr_mst< G >::m_get_component, pgrouting::functions::Pgr_mst< G >::m_max_depth, pgrouting::functions::Pgr_mst< G >::m_roots, pgrouting::functions::Pgr_mst< G >::m_suffix, pgrouting::functions::Pgr_mst< G >::no_neg_costs(), and pgrouting::functions::Pgr_mst< G >::no_order().
Referenced by pgrouting::functions::Pgr_mst< G >::bfs_ordering().
|
inlineprotected |
Definition at line 93 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::bfs_order(), pgrouting::details::clean_vids(), pgrouting::functions::Pgr_mst< G >::generate_mst(), pgrouting::functions::Pgr_mst< G >::m_distance, pgrouting::functions::Pgr_mst< G >::m_get_component, pgrouting::functions::Pgr_mst< G >::m_max_depth, pgrouting::functions::Pgr_mst< G >::m_roots, and pgrouting::functions::Pgr_mst< G >::m_suffix.
|
inlineprotected |
Definition at line 121 of file pgr_mst.hpp.
References pgrouting::details::clean_vids(), pgrouting::functions::Pgr_mst< G >::dfs_order(), pgrouting::functions::Pgr_mst< G >::generate_mst(), pgrouting::functions::Pgr_mst< G >::m_distance, pgrouting::functions::Pgr_mst< G >::m_get_component, pgrouting::functions::Pgr_mst< G >::m_max_depth, pgrouting::functions::Pgr_mst< G >::m_roots, and pgrouting::functions::Pgr_mst< G >::m_suffix.
|
inlineprotected |
Definition at line 107 of file pgr_mst.hpp.
References pgrouting::details::clean_vids(), pgrouting::functions::Pgr_mst< G >::dfs_order(), pgrouting::functions::Pgr_mst< G >::generate_mst(), pgrouting::functions::Pgr_mst< G >::m_distance, pgrouting::functions::Pgr_mst< G >::m_get_component, pgrouting::functions::Pgr_mst< G >::m_max_depth, pgrouting::functions::Pgr_mst< G >::m_roots, and pgrouting::functions::Pgr_mst< G >::m_suffix.
|
inlineprivate |
Definition at line 359 of file pgr_mst.hpp.
References pgassert.
Referenced by pgrouting::functions::Pgr_mst< G >::mst().
|
inlineprotected |
Definition at line 66 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::no_ordering().
Referenced by pgrouting::functions::Pgr_mst< G >::mst().
|
inlineprivate |
Definition at line 250 of file pgr_mst.hpp.
References pgrouting::functions::Pgr_mst< G >::InSpanning::edges, pgrouting::functions::Pgr_mst< G >::get_results(), and pgrouting::functions::Pgr_mst< G >::m_spanning_tree.
Referenced by pgrouting::functions::Pgr_mst< G >::no_order().
|
protected |
m_components[v]:
Definition at line 152 of file pgr_mst.hpp.
Referenced by pgrouting::functions::Pgr_mst< G >::calculate_component(), pgrouting::functions::Pgr_mst< G >::clear(), and pgrouting::functions::Pgr_mst< G >::get_results().
|
protected |
|
protected |
Definition at line 137 of file pgr_mst.hpp.
Referenced by pgrouting::functions::Pgr_mst< G >::calculate_component(), pgrouting::functions::Pgr_mst< G >::get_results(), pgrouting::functions::Pgr_mst< G >::mst(), pgrouting::functions::Pgr_mst< G >::mstBFS(), pgrouting::functions::Pgr_mst< G >::mstDD(), and pgrouting::functions::Pgr_mst< G >::mstDFS().
|
protected |
|
protected |
Definition at line 136 of file pgr_mst.hpp.
Referenced by pgrouting::functions::Pgr_mst< G >::bfs_ordering(), pgrouting::functions::Pgr_mst< G >::dfs_ordering(), pgrouting::functions::Pgr_mst< G >::get_results(), pgrouting::functions::Pgr_mst< G >::mst(), pgrouting::functions::Pgr_mst< G >::mstBFS(), pgrouting::functions::Pgr_mst< G >::mstDD(), and pgrouting::functions::Pgr_mst< G >::mstDFS().
|
protected |
|
protected |
Stores which function is being executed.
TODO change to enum
Definition at line 159 of file pgr_mst.hpp.
Referenced by pgrouting::functions::Pgr_mst< G >::get_results(), pgrouting::functions::Pgr_mst< G >::mst(), pgrouting::functions::Pgr_mst< G >::mstBFS(), pgrouting::functions::Pgr_mst< G >::mstDD(), and pgrouting::functions::Pgr_mst< G >::mstDFS().
|
protected |
m_tree_id[v]:
Definition at line 166 of file pgr_mst.hpp.
Referenced by pgrouting::functions::Pgr_mst< G >::bfs_ordering(), pgrouting::functions::Pgr_mst< G >::calculate_component(), pgrouting::functions::Pgr_mst< G >::clear(), and pgrouting::functions::Pgr_mst< G >::get_results().