118 virtual double computeCIndex(
const Graph & G,
node v) = 0;
121 virtual double computeCIndex(
node v) = 0;
126 return averageCIndex(*m_pGraph);
133 ciSum += computeCIndex(G, v);
Derived class of GraphObserver providing additional functionality to handle clustered graphs...
Data type for general directed graphs (adjacency list representation).
Interface for algorithms that compute a clustering for a given graph.
void setParent(SimpleCluster *parent)
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
virtual double averageCIndex()
compute the average clustering index for the given graph
SimpleCluster(SimpleCluster *parent=nullptr)
SList< SimpleCluster * > m_children
Singly linked lists (maintaining the length of the list).
Representation of clustered graphs.
void pushBackChild(SimpleCluster *s)
const Graph & getGraph() const
Returns the graph to be clustered.
ClustererModule()
Default constructor, initializes a clustering module.
ClustererModule(const Graph &G)
Class for the representation of nodes.
Includes declaration of graph class.
virtual double averageCIndex(const Graph &G)
Declaration of simple graph algorithms.
SList< SimpleCluster * > & children()
The namespace for all OGDF objects.
int numberOfNodes() const
Returns the number of nodes in the graph.
internal::GraphObjectContainer< NodeElement > nodes
The container containing all node objects.
bool isConnected(const Graph &G)
Returns true iff G is connected.
void setGraph(const Graph &G)
Sets the graph to be clustered.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
void pushBackVertex(node v)
SimpleCluster * getParent()