proteinortho
6.0.14
|
#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... | |
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)
|
inline |
Constructor: sum of node degrees = 0. density = -1 (will be set in BFS)
|
inline |
Set operator for connected components
|
inline |
Overloaded [] operator for quick access.
|
inline |
Overloaded [] operator for quick access.
|
inline |
Pushes a new node (given as index of variable graph) to this connected component
|
inline |
Returns the number of nodes of this connected component
|
inline |
unsigned int ConnectedComponent::d_sum |
sum of node degrees
double ConnectedComponent::density |
the graph density calculated in the function BFS (at the end)
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