![]() |
Quetzal-CoaTL
The Coalescence Template Library
|
#include <quetzal/coalescence/graph/detail/cardinal_k_ary_tree.hpp>
Forward Binary Tree.
Vertex |
Classes | |
class | traversal_category |
The ways in which the vertices in the graph can be traversed. More... | |
Public Member Functions | |
BOOST_STATIC_CONSTEXPR vertex_descriptor | null_vertex () |
std::size_t | num_vertices () const |
detail::binary_tree_forward_node< binary_tree< false, Vertex > > const & | operator[] (vertex_descriptor u) const |
bool | has_successor (vertex_descriptor u) const |
void | clear () |
void | shrink_to_fit () |
Protected Member Functions | |
vertex_descriptor | add_vertex () |
bool | add_vertex (vertex_descriptor u) |
void | remove_vertex (vertex_descriptor u) |
std::pair< edge_descriptor, bool > | add_edge (vertex_descriptor u, vertex_descriptor v) |
std::pair< edge_descriptor, bool > | add_edge_strict (vertex_descriptor u, vertex_descriptor v) |
void | remove_edge (vertex_descriptor u, vertex_descriptor v) |
void | clear_vertex (vertex_descriptor u) |
edge_descriptor | add_left_edge (vertex_descriptor parent, vertex_descriptor child) |
edge_descriptor | add_right_edge (vertex_descriptor parent, vertex_descriptor child) |
Protected Attributes | |
std::vector< detail::binary_tree_forward_node< binary_tree< false, Vertex > > > | nodes |
std::vector< Vertex > | free_list |
Friends | |
edge_descriptor | add_left_edge (vertex_descriptor parent, vertex_descriptor child, binary_tree &g) |
Add a left edge to the parent vertex. | |
edge_descriptor | add_right_edge (vertex_descriptor parent, vertex_descriptor child, binary_tree &g) |
Add a left edge to the parent vertex. | |
MutableGraph interface | |
std::pair< edge_descriptor, bool > | add_edge (vertex_descriptor u, vertex_descriptor v, binary_tree &g) |
Inserts the edge (u,v) into the graph. | |
void | remove_edge (vertex_descriptor u, vertex_descriptor v, binary_tree &g) |
Remove the edge (u,v) from the graph. | |
void | remove_edge (edge_descriptor e, binary_tree &g) |
Remove the edge e from the graph. | |
void | clear_vertex (vertex_descriptor u, binary_tree &g) |
Remove all edges to and from vertex u from the graph. | |
|
friend |
Inserts the edge (u,v) into the graph.
u | Vertex u |
v | Vertex v |
g | Binary tree graph |
|
friend |
Add a left edge to the parent vertex.
parent | The parent vertex |
child | The child vertex |
g | The binary tree graph |
|
friend |
Add a left edge to the parent vertex.
parent | The parent vertex |
child | The child vertex |
g | The binary tree graph |
|
friend |
Remove all edges to and from vertex u from the graph.
u | The vertex u |
g | The binary tree graph. |
|
friend |
Remove the edge e from the graph.
e | The edge in the graph. |
g | The binary tree graph. |
|
friend |
Remove the edge (u,v) from the graph.
u | Vertex u |
v | Vertex v |
g | The binary tree graph |