109 neighbor[adjE->twinNode()] =
true;
112 for (
adjEntry adjEE : adjE->twinNode()->adjEntries) {
113 if (neighbor[adjEE->twinNode()]) {
119 double index = conns / 2.0;
133 bool m_autoThresholds;
Declaration of interface for clustering algorithms that compute a clustering for a given graph based ...
Includes declaration of graph class.
Decralation of GraphElement and GraphList classes.
Declaration of doubly linked lists and iterators.
Basic declarations, included by all source files.
Class for adjacency list elements.
Representation of clustered graphs.
Clustering is determined based on the threshold values (connectivity thresholds determine edges to be...
Clusterer(const Graph &G)
Constructor taking a graph G to be clustered.
virtual double computeCIndex(const Graph &G, node v) override
compute a clustering index for each vertex
void setClusteringThresholds(const List< double > &threshs)
List< double > m_defaultThresholds
Clusterer()
Default constructor allowing to cluster multiple graphs with the same instance of the Clusterer graph...
void setAutomaticThresholds(int numValues)
List< double > m_autoThresholds
virtual double computeCIndex(node v) override
compute a clustering index for each vertex
void setStopIndex(double stop)
void computeEdgeStrengths(EdgeArray< double > &strength)
EdgeArray< double > m_edgeValue
virtual void computeClustering(SList< SimpleCluster * > &sl) override
compute some kind of clustering on the graph m_pGraph
virtual void createClusterGraph(ClusterGraph &C) override
translate computed clustering into cluster hierarchy in cluster graph C
List< double > m_thresholds
void setRecursive(bool b)
NodeArray< double > m_vertexValue
void computeEdgeStrengths(const Graph &G, EdgeArray< double > &strength)
Interface for algorithms that compute a clustering for a given graph.
Data type for general directed graphs (adjacency list representation).
Doubly linked lists (maintaining the length of the list).
Class for the representation of nodes.
int degree() const
Returns the degree of the node (indegree + outdegree).
internal::GraphObjectContainer< AdjElement > adjEntries
The container containing all entries in the adjacency list of this node.
const Graph * graphOf() const
Returns the graph containing this node (debug only).
Singly linked lists (maintaining the length of the list).
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
RegisteredArray for nodes, edges and adjEntries of a graph.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
The namespace for all OGDF objects.