72 void setClusteringThresholds(
const List<double> &threshs);
80 m_autoThreshNum = numValues;
90 virtual void createClusterGraph(
ClusterGraph &C)
override;
98 return computeCIndex(*m_pGraph, v);
104 if (v->
degree() < 2)
return 1.0;
115 if (neighbor[adjEE->twinNode()])
120 double index = conns / 2.0;
134 bool m_autoThresholds;
NodeArray< double > m_vertexValue
Data type for general directed graphs (adjacency list representation).
Interface for algorithms that compute a clustering for a given graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
int degree() const
Returns the degree of the node (indegree + outdegree).
Clustering is determined based on the threshold values (connectivity thresholds determine edges to be...
Declaration of interface for clustering algorithms that compute a clustering for a given graph based ...
List< double > m_thresholds
Singly linked lists (maintaining the length of the list).
Representation of clustered graphs.
void setAutomaticThresholds(int numValues)
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
EdgeArray< double > m_edgeValue
node twinNode() const
Returns the associated node of the corresponding adjacency entry (shorthand for twin()->theNode()).
Class for the representation of nodes.
void setRecursive(bool b)
void setStopIndex(double stop)
The namespace for all OGDF objects.
List< double > m_defaultThresholds
Class for adjacency list elements.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
List< double > m_autoThresholds
internal::GraphObjectContainer< AdjElement > adjEntries
The container containing all entries in the adjacency list of this node.