Clustering is determined based on the threshold values (connectivity thresholds determine edges to be deleted) and stopped if average clustering index drops below m_stopIndex. More...
#include <ogdf/graphalg/Clusterer.h>
Public Member Functions | |
Clusterer () | |
Default constructor allowing to cluster multiple graphs with the same instance of the Clusterer graphs. | |
Clusterer (const Graph &G) | |
Constructor taking a graph G to be clustered. | |
virtual | ~Clusterer () |
virtual double | computeCIndex (const Graph &G, node v) override |
compute a clustering index for each vertex | |
virtual double | computeCIndex (node v) override |
compute a clustering index for each vertex | |
virtual void | computeClustering (SList< SimpleCluster * > &sl) override |
compute some kind of clustering on the graph m_pGraph | |
void | computeEdgeStrengths (const Graph &G, EdgeArray< double > &strength) |
void | computeEdgeStrengths (EdgeArray< double > &strength) |
virtual void | createClusterGraph (ClusterGraph &C) override |
translate computed clustering into cluster hierarchy in cluster graph C | |
void | setAutomaticThresholds (int numValues) |
void | setClusteringThresholds (const List< double > &threshs) |
void | setRecursive (bool b) |
void | setStopIndex (double stop) |
Public Member Functions inherited from ogdf::ClustererModule | |
ClustererModule () | |
Default constructor, initializes a clustering module. | |
ClustererModule (const Graph &G) | |
virtual double | averageCIndex () |
compute the average clustering index for the given graph | |
virtual double | averageCIndex (const Graph &G) |
const Graph & | getGraph () const |
Returns the graph to be clustered. | |
void | setGraph (const Graph &G) |
Sets the graph to be clustered. | |
Protected Attributes | |
int | m_autoThreshNum |
List< double > | m_autoThresholds |
List< double > | m_defaultThresholds |
EdgeArray< double > | m_edgeValue |
bool | m_recursive |
double | m_stopIndex |
List< double > | m_thresholds |
NodeArray< double > | m_vertexValue |
Protected Attributes inherited from ogdf::ClustererModule | |
const Graph * | m_pGraph |
Clustering is determined based on the threshold values (connectivity thresholds determine edges to be deleted) and stopped if average clustering index drops below m_stopIndex.
Definition at line 51 of file Clusterer.h.
Constructor taking a graph G to be clustered.
ogdf::Clusterer::Clusterer | ( | ) |
Default constructor allowing to cluster multiple graphs with the same instance of the Clusterer graphs.
|
inlinevirtual |
Definition at line 61 of file Clusterer.h.
compute a clustering index for each vertex
Implements ogdf::ClustererModule.
Definition at line 94 of file Clusterer.h.
compute a clustering index for each vertex
Implements ogdf::ClustererModule.
Definition at line 92 of file Clusterer.h.
|
overridevirtual |
compute some kind of clustering on the graph m_pGraph
This is the algorithm call that has to be implemented by derived classes
sl | is the resulting list of clusters |
Implements ogdf::ClustererModule.
|
overridevirtual |
translate computed clustering into cluster hierarchy in cluster graph C
Implements ogdf::ClustererModule.
Definition at line 77 of file Clusterer.h.
Definition at line 80 of file Clusterer.h.
Definition at line 88 of file Clusterer.h.
|
protected |
Definition at line 128 of file Clusterer.h.
Definition at line 120 of file Clusterer.h.
Definition at line 121 of file Clusterer.h.
Definition at line 117 of file Clusterer.h.
|
protected |
Definition at line 124 of file Clusterer.h.
|
protected |
Definition at line 122 of file Clusterer.h.
Definition at line 119 of file Clusterer.h.
Definition at line 118 of file Clusterer.h.