PGROUTING
3.2
|
#include "pgr_kruskal.hpp"
Public Member Functions | |
std::vector< pgr_mst_rt > | kruskal (G &graph) |
std::vector< pgr_mst_rt > | kruskalBFS (G &graph, std::vector< int64_t > roots, int64_t max_depth) |
std::vector< pgr_mst_rt > | kruskalDD (G &graph, std::vector< int64_t > roots, double distance) |
std::vector< pgr_mst_rt > | kruskalDFS (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) |
void | clear () |
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) |
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) |
Definition at line 41 of file pgr_kruskal.hpp.
|
private |
Definition at line 61 of file pgr_kruskal.hpp.
|
private |
Definition at line 63 of file pgr_kruskal.hpp.
|
protectedinherited |
Definition at line 53 of file pgr_mst.hpp.
|
private |
Definition at line 62 of file pgr_kruskal.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().
|
inlineprotectedinherited |
|
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().
std::vector< pgr_mst_rt > pgrouting::functions::Pgr_kruskal< G >::kruskal | ( | G & | graph | ) |
Definition at line 85 of file pgr_kruskal.hpp.
std::vector< pgr_mst_rt > pgrouting::functions::Pgr_kruskal< G >::kruskalBFS | ( | G & | graph, |
std::vector< int64_t > | roots, | ||
int64_t | max_depth | ||
) |
Definition at line 93 of file pgr_kruskal.hpp.
std::vector< pgr_mst_rt > pgrouting::functions::Pgr_kruskal< G >::kruskalDD | ( | G & | graph, |
std::vector< int64_t > | roots, | ||
double | distance | ||
) |
Definition at line 111 of file pgr_kruskal.hpp.
std::vector< pgr_mst_rt > pgrouting::functions::Pgr_kruskal< G >::kruskalDFS | ( | G & | graph, |
std::vector< int64_t > | roots, | ||
int64_t | max_depth | ||
) |
Definition at line 102 of file pgr_kruskal.hpp.
|
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().
|
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().