|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
126 virtual double computeCIndex(
const Graph& G,
node v) = 0;
129 virtual double computeCIndex(
node v) = 0;
136 for (
node v : G.nodes) {
137 ciSum += computeCIndex(G, v);
139 return ciSum / (G.numberOfNodes());
The namespace for all OGDF objects.
Includes declaration of graph class.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
SList< SimpleCluster * > & children()
ClustererModule(const Graph &G)
Singly linked lists (maintaining the length of the list).
void pushBackVertex(node v)
bool isConnected(const Graph &G)
Returns true iff G is connected.
void pushBackChild(SimpleCluster *s)
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
Declaration of singly linked lists and iterators.
Decralation of GraphElement and GraphList classes.
SimpleCluster(SimpleCluster *parent=nullptr)
Data type for general directed graphs (adjacency list representation).
void setGraph(const Graph &G)
Sets the graph to be clustered.
const Graph & getGraph() const
Returns the graph to be clustered.
SimpleCluster * getParent()
Basic declarations, included by all source files.
SList< SimpleCluster * > m_children
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
virtual double averageCIndex(const Graph &G)
ClustererModule()
Default constructor, initializes a clustering module.
Interface for algorithms that compute a clustering for a given graph.
Representation of clustered graphs.
Class for the representation of nodes.
void setParent(SimpleCluster *parent)
Declaration of memory manager for allocating small pieces of memory.
Declaration of simple graph algorithms.
virtual double averageCIndex()
compute the average clustering index for the given graph