|
graph_t & | operator[] (const std::size_t i) noexcept |
| Access operator.
|
|
const graph_t & | operator[] (const std::size_t i) const noexcept |
| Access operator.
|
|
void | init (const std::size_t n) noexcept |
| Initializes this object.
|
|
void | add_graph (graph_t &&g) noexcept |
| Add a graph to the list of connected components.
|
|
void | add_graph (const graph_t &g) noexcept |
| Add a graph to the list of connected components.
|
|
void | set_node_cc (const node u, const std::size_t label) noexcept |
| Relates vertex u to the label of its connected component.
|
|
void | set_label_graph_node_to_cc_node (const node u, const std::size_t label) noexcept |
| Relates vertex u to the corresponding vertex within its connected component.
|
|
void | set_label_cc_node_to_graph_node (const std::size_t cc_idx, const node u, const std::size_t label) noexcept |
| Relates vertex u to the corresponding vertex within its connected component.
|
|
std::size_t | size () const noexcept |
| Returns the number of connected components.
|
|
std::size_t | get_cc_node (const node u) const noexcept |
| Returns the label of the connected component u belongs to.
|
|
std::size_t | get_label_graph_node_to_cc_node (const node u) const noexcept |
| The corresponding vertex within its connected component.
|
|
std::size_t | get_label_cc_node_to_graph_node (const std::size_t cc_idx, const node u) const noexcept |
| The corresponding vertex within its connected component.
|
|
const_iterator | begin () const noexcept |
| A pointer to the beginning of the sequence of connected components.
|
|
iterator | begin () noexcept |
| A pointer to the beginning of the sequence of connected components.
|
|
const_iterator | end () const noexcept |
| A pointer to the end of the sequence of connected components.
|
|
iterator | end () noexcept |
| A pointer to the end of the sequence of connected components.
|
|
template<class graph_t>
class lal::properties::connected_components< graph_t >
The connected components of a graph.
This class is to be used paired with another graph.
- Template Parameters
-