Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
|
#include <strongly_connected_components.h>
Public Member Functions | |
void | emplace_back (NodeIndex const *b, NodeIndex const *e) |
int | size () const |
void | clear () |
Public Attributes | |
int | number_of_components = 0 |
A simple custom output class that just counts the number of SCC. Not allocating many vectors can save both space and speed if your graph is large.
Definition at line 83 of file strongly_connected_components.h.
|
inline |
Definition at line 91 of file strongly_connected_components.h.
|
inline |
Definition at line 85 of file strongly_connected_components.h.
|
inline |
This is just here so this class can transparently replace a code that use vector<vector<int>> as an SccOutput, and get its size with size().
Definition at line 90 of file strongly_connected_components.h.
int SccCounterOutput< NodeIndex >::number_of_components = 0 |
Definition at line 84 of file strongly_connected_components.h.