PGROUTING
3.2
|
#include "pgr_prim.hpp"
Public Member Functions | |
std::vector< pgr_mst_rt > | prim (G &graph) |
std::vector< pgr_mst_rt > | primBFS (G &graph, std::vector< int64_t > roots, int64_t max_depth) |
std::vector< pgr_mst_rt > | primDD (G &graph, std::vector< int64_t > roots, double distance) |
std::vector< pgr_mst_rt > | primDFS (G &graph, std::vector< int64_t > roots, int64_t max_depth) |
Protected Types | |
typedef G::E_i | E_i |
Protected Member Functions | |
std::vector< pgr_mst_rt > | bfs_order (const G &graph) |
std::vector< pgr_mst_rt > | dfs_order (const G &graph) |
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 Types | |
typedef G::B_G | B_G |
typedef G::E | E |
typedef G::V | V |
Private Member Functions | |
std::vector< pgr_mst_rt > | bfs_ordering (const G &graph) |
void | calculate_component (const G &graph) |
void | clear () |
std::vector< pgr_mst_rt > | dfs_forest (const G &graph) |
std::vector< pgr_mst_rt > | dfs_ordering (const G &graph) |
void | generate_mst (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) |
void | primTree (const G &graph, int64_t root_vertex) |
Private Attributes | |
std::vector< V > | data |
std::vector< double > | distances |
std::set< V > | m_unassigned |
std::vector< V > | predecessors |
Definition at line 47 of file pgr_prim.hpp.
|
private |
Definition at line 50 of file pgr_prim.hpp.
|
private |
Definition at line 49 of file pgr_prim.hpp.
|
protectedinherited |
Definition at line 53 of file pgr_mst.hpp.
|
private |
Definition at line 48 of file pgr_prim.hpp.
|
inlineprotectedinherited |
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().
|
inlineprivateinherited |
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().
|
inlineprivateinherited |
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().
|
inlineprivate |
Definition at line 73 of file pgr_prim.hpp.
References pgrouting::functions::Pgr_prim< G >::data, pgrouting::functions::Pgr_prim< G >::distances, and pgrouting::functions::Pgr_prim< G >::predecessors.
|
inlineprivateinherited |
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().
|
inlineprotectedinherited |
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().
|
inlineprivateinherited |
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().
|
privatevirtual |
|
inlineprivateinherited |
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().
|
inlineprotectedinherited |
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().
|
inlineprotectedinherited |
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.
|
inlineprotectedinherited |
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.
|
inlineprotectedinherited |
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.
|
inlineprivateinherited |
Definition at line 359 of file pgr_mst.hpp.
References pgassert.
Referenced by pgrouting::functions::Pgr_mst< G >::mst().
|
inlineprotectedinherited |
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().
|
inlineprivateinherited |
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().
std::vector< pgr_mst_rt > pgrouting::functions::Pgr_prim< G >::prim | ( | G & | graph | ) |
Definition at line 165 of file pgr_prim.hpp.
Referenced by do_pgr_prim().
std::vector< pgr_mst_rt > pgrouting::functions::Pgr_prim< G >::primBFS | ( | G & | graph, |
std::vector< int64_t > | roots, | ||
int64_t | max_depth | ||
) |
Definition at line 172 of file pgr_prim.hpp.
Referenced by do_pgr_prim().
std::vector< pgr_mst_rt > pgrouting::functions::Pgr_prim< G >::primDD | ( | G & | graph, |
std::vector< int64_t > | roots, | ||
double | distance | ||
) |
Definition at line 190 of file pgr_prim.hpp.
Referenced by do_pgr_prim().
std::vector< pgr_mst_rt > pgrouting::functions::Pgr_prim< G >::primDFS | ( | G & | graph, |
std::vector< int64_t > | roots, | ||
int64_t | max_depth | ||
) |
Definition at line 181 of file pgr_prim.hpp.
Referenced by do_pgr_prim().
|
private |
Definition at line 96 of file pgr_prim.hpp.
|
private |
Definition at line 89 of file pgr_prim.hpp.
Referenced by pgrouting::functions::Pgr_prim< G >::clear().
|
private |
Definition at line 88 of file pgr_prim.hpp.
Referenced by pgrouting::functions::Pgr_prim< G >::clear().
|
protectedinherited |
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().
|
protectedinherited |
|
protectedinherited |
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().
|
protectedinherited |
|
protectedinherited |
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().
|
protectedinherited |
|
protectedinherited |
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().
|
protectedinherited |
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().
|
private |
Definition at line 90 of file pgr_prim.hpp.
|
private |
Definition at line 87 of file pgr_prim.hpp.
Referenced by pgrouting::functions::Pgr_prim< G >::clear().