|
graph_analysis
|
Implementation of "Correlation Clustering in General Weighted Graphs" (Demaine et al., 2005) and "Correlation Clustering with partial information" (Demaine et al., 2004) More...
#include <CorrelationClustering.hpp>
Public Member Functions | |
| CorrelationClustering (BaseGraph::Ptr graph, EdgeWeightFunction weightfunction) | |
| void | round () |
| std::map< Edge::Ptr, double > | getEdgeActivation () const |
| double | cut (Ball ball) |
| double | volume (Ball ball) |
| Ball | createBall (Vertex::Ptr vertex, double radius) |
Static Public Member Functions | |
| static std::string | toString (const std::map< Edge::Ptr, double > &solution) |
Implementation of "Correlation Clustering in General Weighted Graphs" (Demaine et al., 2005) and "Correlation Clustering with partial information" (Demaine et al., 2004)
This is an implementation of the correlation clustering as described in: "Correlation Clustering in General Weighted Graphs" (Demaine et al., 2005) and "Correlation Clustering with partial information" (Demaine et al., 2004)
This implementation however does not(!) use non-negative edge weights, but interpretes the sign as label <+>/<-> to describe similarity.
To solve the resulting integer program the GLPK (GNU Linear Programming Kit) is used
| graph_analysis::algorithms::CorrelationClustering::CorrelationClustering | ( | BaseGraph::Ptr | graph, |
| EdgeWeightFunction | weightfunction | ||
| ) |
| Ball graph_analysis::algorithms::CorrelationClustering::createBall | ( | Vertex::Ptr | vertex, |
| double | radius | ||
| ) |
"A ball
of radius r around node u consists of all nodes v such that
, the subgraph induced by these nodes, and the fraction
of edges
with only edpoint
"
| double graph_analysis::algorithms::CorrelationClustering::cut | ( | Ball | ball | ) |
Compute cut for the set of nodes in ball which is part of the overall graph
"The cut of a set S of nodes, denoted by cut(S) is the weight of the positive edges with exactly one endpoint in S.[..] The cur of a ball is the cut induced by the set of vertices included in the ball."
|
inline |
Get the edge activation after performing the correlation clustering
| void graph_analysis::algorithms::CorrelationClustering::round | ( | ) |
|
static |
| double graph_analysis::algorithms::CorrelationClustering::volume | ( | Ball | ball | ) |
1.8.13