![]() |
OR-Tools
9.6
|
Definition at line 88 of file connected_components.h.
Public Member Functions | |
| DenseConnectedComponentsFinder () | |
| DenseConnectedComponentsFinder (const DenseConnectedComponentsFinder &)=default | |
| DenseConnectedComponentsFinder & | operator= (const DenseConnectedComponentsFinder &)=default |
| DenseConnectedComponentsFinder (DenseConnectedComponentsFinder &&)=default | |
| DenseConnectedComponentsFinder & | operator= (DenseConnectedComponentsFinder &&)=default |
| bool | AddEdge (int node1, int node2) |
| bool | Connected (int node1, int node2) |
| int | GetSize (int node) |
| int | GetNumberOfComponents () const |
| int | GetNumberOfNodes () const |
| const std::vector< int > & | GetComponentRoots () |
| void | SetNumberOfNodes (int num_nodes) |
| int | FindRoot (int node) |
| std::vector< int > | GetComponentIds () |
|
inline |
Definition at line 90 of file connected_components.h.
|
default |
|
default |
| bool AddEdge | ( | int | node1, |
| int | node2 | ||
| ) |
Definition at line 98 of file connected_components.cc.
| bool Connected | ( | int | node1, |
| int | node2 | ||
| ) |
Definition at line 136 of file connected_components.cc.
| int FindRoot | ( | int | node | ) |
Definition at line 56 of file connected_components.cc.
| std::vector< int > GetComponentIds | ( | ) |
Definition at line 151 of file connected_components.cc.
| const std::vector< int > & GetComponentRoots | ( | ) |
Definition at line 75 of file connected_components.cc.
|
inline |
Definition at line 106 of file connected_components.h.
|
inline |
Definition at line 107 of file connected_components.h.
| int GetSize | ( | int | node | ) |
Definition at line 144 of file connected_components.cc.
|
default |
|
default |
| void SetNumberOfNodes | ( | int | num_nodes | ) |
Definition at line 38 of file connected_components.cc.