Interface for algorithms that compute a clustering for a given graph. More...
#include <ogdf/graphalg/ClustererModule.h>
Public Member Functions | |
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) |
virtual double | computeCIndex (const Graph &G, node v)=0 |
compute a clustering index for each vertex | |
virtual double | computeCIndex (node v)=0 |
compute a clustering index for each vertex | |
virtual void | computeClustering (SList< SimpleCluster * > &sl)=0 |
compute some kind of clustering on the graph m_pGraph | |
virtual void | createClusterGraph (ClusterGraph &C)=0 |
translate computed clustering into cluster hierarchy in cluster graph C | |
const Graph & | getGraph () const |
Returns the graph to be clustered. | |
void | setGraph (const Graph &G) |
Sets the graph to be clustered. | |
Protected Attributes | |
const Graph * | m_pGraph |
Interface for algorithms that compute a clustering for a given graph.
The class ClustererModule is the base class for clustering classes that allow to compute some hierarchical clustering
Definition at line 85 of file ClustererModule.h.
Definition at line 88 of file ClustererModule.h.
|
inline |
Default constructor, initializes a clustering module.
Definition at line 93 of file ClustererModule.h.
compute the average clustering index for the given graph
Definition at line 128 of file ClustererModule.h.
Definition at line 130 of file ClustererModule.h.
compute a clustering index for each vertex
Implemented in ogdf::Clusterer.
compute a clustering index for each vertex
Implemented in ogdf::Clusterer.
|
pure virtual |
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 |
Implemented in ogdf::Clusterer.
|
pure virtual |
translate computed clustering into cluster hierarchy in cluster graph C
Implemented in ogdf::Clusterer.
Returns the graph to be clustered.
Definition at line 107 of file ClustererModule.h.
Sets the graph to be clustered.
G | is the input graph |
Definition at line 101 of file ClustererModule.h.
Definition at line 139 of file ClustererModule.h.