Class graph::components#
-
class components#
Represents a graph as a series of connected components.
The input graph may consist of many components, they will be separated in the construction.
Public Functions
-
inline size_t size() const#
Get the number of connected components in the graph.
-
inline size_t num_reserved(int c) const#
returns the number of reserved nodes in a component
-
inline size_t size(int c) const#
Get the size (in nodes) of a component.
-
inline const input_graph &component_graph(int c) const#
Get a const reference to the graph object of a component.
-
inline std::vector<std::vector<int>> component_neighbors(int c) const#
Construct a neighborhood list for component c, with reserved nodes as sources.
-
inline size_t size() const#