CMR
1.3.0
|
Namespaces | |
detail | |
Functions | |
template<typename Graph > | |
void | reconnect_edge_target (Graph &graph, typename boost::graph_traits< Graph >::edge_descriptor edge, typename boost::graph_traits< Graph >::vertex_descriptor old_vertex, typename boost::graph_traits< Graph >::vertex_descriptor new_vertex) |
template<typename Graph > | |
void | reconnect_edge_source (Graph &graph, typename boost::graph_traits< Graph >::edge_descriptor edge, typename boost::graph_traits< Graph >::vertex_descriptor old_vertex, typename boost::graph_traits< Graph >::vertex_descriptor new_vertex) |
template<typename Graph > | |
void | reconnect_edge (Graph &graph, typename boost::graph_traits< Graph >::edge_descriptor edge, typename boost::graph_traits< Graph >::vertex_descriptor old_vertex, typename boost::graph_traits< Graph >::vertex_descriptor new_vertex) |
template<typename Graph , typename IndexMap , typename VertexSequence > | |
bool | is_path (const Graph &graph, const IndexMap index_map, VertexSequence &path) |
template<typename Graph , typename IndexMap > | |
bool | is_path (const Graph &graph, const IndexMap index_map) |
template<typename Graph > | |
bool | is_path (const Graph &g) |
template<typename Graph , typename IndexMap , typename Vertex > | |
bool | find_star_vertex (const Graph &graph, const IndexMap index_map, Vertex &vertex) |
template<typename Graph , typename Vertex > | |
bool | find_star_vertex (const Graph &graph, Vertex &vertex) |
template<typename Graph , typename IndexMap > | |
bool | is_star (const Graph &graph, const IndexMap index_map) |
template<typename Graph > | |
bool | is_star (const Graph &graph) |
template<typename Graph , typename VertexSet > | |
void | used_vertices (const Graph &graph, VertexSet &vertex_set) |
bool tu::util::find_star_vertex | ( | const Graph & | graph, |
const IndexMap | index_map, | ||
Vertex & | vertex | ||
) |
Tests, if a given graph is a star and stores the central vertex.
graph | A given graph |
index_map | An index map for this graph |
vertex | Returns the central vertex |
bool tu::util::find_star_vertex | ( | const Graph & | graph, |
Vertex & | vertex | ||
) |
Tests, if a given graph is a star and stores the central vertex. The graph must have an index map attached.
graph | A given graph |
vertex | Returns the central vertex |
bool tu::util::is_path | ( | const Graph & | g | ) |
Tests, if a given graph is a path. The graph must have an index map attached.
graph | A given graph |
bool tu::util::is_path | ( | const Graph & | graph, |
const IndexMap | index_map | ||
) |
Tests, if a given graph is a path.
graph | A given graph |
index_map | An index map for this graph |
bool tu::util::is_path | ( | const Graph & | graph, |
const IndexMap | index_map, | ||
VertexSequence & | path | ||
) |
Tests, if a given graph is a path and stores the vertices in order into a given sequence.
graph | A given graph |
index_map | An index map for this graph |
path | The resulting sequence of nodes in order |
Call breadth first search
bool tu::util::is_star | ( | const Graph & | graph | ) |
Tests, if a given graph is a star and stores the central vertex. The graph must have an index map attached.
graph | A given graph |
bool tu::util::is_star | ( | const Graph & | graph, |
const IndexMap | index_map | ||
) |
Tests, if a given graph is a star.
graph | A given graph |
index_map | An index map for this graph |
void tu::util::reconnect_edge | ( | Graph & | graph, |
typename boost::graph_traits< Graph >::edge_descriptor | edge, | ||
typename boost::graph_traits< Graph >::vertex_descriptor | old_vertex, | ||
typename boost::graph_traits< Graph >::vertex_descriptor | new_vertex | ||
) |
Reconnects an edge in a graph, retaining the edge property, by replacing a given old vertex by a new one.
graph | The given graph |
edge | An edge in the graph |
old_vertex | One of the vertices of the edge |
new_vertex | Another vertex in the graph, which should replace the old vertex |
void tu::util::reconnect_edge_source | ( | Graph & | graph, |
typename boost::graph_traits< Graph >::edge_descriptor | edge, | ||
typename boost::graph_traits< Graph >::vertex_descriptor | old_vertex, | ||
typename boost::graph_traits< Graph >::vertex_descriptor | new_vertex | ||
) |
Reconnects an edge in a graph, retaining the edge property, by replacing the target vertex.
graph | A given graph |
edge | An edge in the graph |
old_vertex | One of the vertices of the edge |
new_vertex | Another vertex in the graph, the edge should have as source |
void tu::util::reconnect_edge_target | ( | Graph & | graph, |
typename boost::graph_traits< Graph >::edge_descriptor | edge, | ||
typename boost::graph_traits< Graph >::vertex_descriptor | old_vertex, | ||
typename boost::graph_traits< Graph >::vertex_descriptor | new_vertex | ||
) |
Reconnects an edge in a graph, retaining the edge property, by replacing the target vertex.
graph | A given graph |
edge | An edge in the graph |
old_vertex | One of the vertices of the edge |
new_vertex | Another vertex in the graph, the edge should have as target |
void tu::util::used_vertices | ( | const Graph & | graph, |
VertexSet & | vertex_set | ||
) |
Collects the non-isolated vertices of a given graph.
graph | A given graph |
vertex_set | A set to be filled with all vertices that are in an edge |