OR-Tools  9.0
DenseConnectedComponentsFinder

Detailed Description

Definition at line 81 of file connected_components.h.

Public Member Functions

 DenseConnectedComponentsFinder ()
 
 DenseConnectedComponentsFinder (const DenseConnectedComponentsFinder &)=default
 
DenseConnectedComponentsFinderoperator= (const DenseConnectedComponentsFinder &)=default
 
 DenseConnectedComponentsFinder (DenseConnectedComponentsFinder &&)=default
 
DenseConnectedComponentsFinderoperator= (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 ()
 

Constructor & Destructor Documentation

◆ DenseConnectedComponentsFinder() [1/3]

Definition at line 83 of file connected_components.h.

◆ DenseConnectedComponentsFinder() [2/3]

◆ DenseConnectedComponentsFinder() [3/3]

Member Function Documentation

◆ AddEdge()

bool AddEdge ( int  node1,
int  node2 
)

Definition at line 96 of file connected_components.cc.

◆ Connected()

bool Connected ( int  node1,
int  node2 
)

Definition at line 134 of file connected_components.cc.

◆ FindRoot()

int FindRoot ( int  node)

Definition at line 54 of file connected_components.cc.

◆ GetComponentIds()

std::vector< int > GetComponentIds ( )

Definition at line 149 of file connected_components.cc.

◆ GetComponentRoots()

const std::vector< int > & GetComponentRoots ( )

Definition at line 73 of file connected_components.cc.

◆ GetNumberOfComponents()

int GetNumberOfComponents ( ) const
inline

Definition at line 99 of file connected_components.h.

◆ GetNumberOfNodes()

int GetNumberOfNodes ( ) const
inline

Definition at line 100 of file connected_components.h.

◆ GetSize()

int GetSize ( int  node)

Definition at line 142 of file connected_components.cc.

◆ operator=() [1/2]

◆ operator=() [2/2]

◆ SetNumberOfNodes()

void SetNumberOfNodes ( int  num_nodes)

Definition at line 36 of file connected_components.cc.


The documentation for this class was generated from the following files: