proteinortho  6.0.14
ConnectedComponent Class Reference

#include <proteinortho_clustering.h>

Public Member Functions

 ConnectedComponent ()
 
unsigned int & operator[] (unsigned int i)
 
const unsigned int & operator[] (unsigned int i) const
 
unsigned int size ()
 
unsigned int size () const
 
void operator= (const ConnectedComponent &D)
 
void push_back (unsigned int i)
 

Public Attributes

vector< unsigned int > m_content_CC
 ids of the induced subgraph of the global variable graph. E.g. m_content_CC=[0,4,6] -> proteins graph[0].full_name,graph[4].full_name,graph[6].full_name More...
 
unsigned int d_sum
 sum of node degrees More...
 
double density
 the graph density calculated in the function BFS (at the end) More...
 

Detailed Description

A graph representation (as vector of indices of the induced subgraph of the variable 'graph') with some graph attributes (graph density, sum of node degrees)

Constructor & Destructor Documentation

◆ ConnectedComponent()

ConnectedComponent::ConnectedComponent ( )
inline

Constructor: sum of node degrees = 0. density = -1 (will be set in BFS)

Member Function Documentation

◆ operator=()

void ConnectedComponent::operator= ( const ConnectedComponent D)
inline

Set operator for connected components

◆ operator[]() [1/2]

unsigned int& ConnectedComponent::operator[] ( unsigned int  i)
inline

Overloaded [] operator for quick access.

◆ operator[]() [2/2]

const unsigned int& ConnectedComponent::operator[] ( unsigned int  i) const
inline

Overloaded [] operator for quick access.

◆ push_back()

void ConnectedComponent::push_back ( unsigned int  i)
inline

Pushes a new node (given as index of variable graph) to this connected component

◆ size() [1/2]

unsigned int ConnectedComponent::size ( )
inline

Returns the number of nodes of this connected component

◆ size() [2/2]

unsigned int ConnectedComponent::size ( ) const
inline

Member Data Documentation

◆ d_sum

unsigned int ConnectedComponent::d_sum

sum of node degrees

◆ density

double ConnectedComponent::density

the graph density calculated in the function BFS (at the end)

◆ m_content_CC

vector<unsigned int> ConnectedComponent::m_content_CC

ids of the induced subgraph of the global variable graph. E.g. m_content_CC=[0,4,6] -> proteins graph[0].full_name,graph[4].full_name,graph[6].full_name


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