Class ClusteringCoefficientComplement<U>
java.lang.Object
es.uam.eps.ir.relison.sna.metrics.graph.ClusteringCoefficientComplement<U>
- Type Parameters:
U- Type of the users.
- All Implemented Interfaces:
GraphMetric<U>
public class ClusteringCoefficientComplement<U> extends java.lang.Object implements GraphMetric<U>
Computes the complementary of the global clustering coefficient of a graph.
References:
- J. Sanz-Cruzado, P. Castells. Beyond accuracy in link prediction. 3rd Workshop on Social Media for Personalization and Search (SoMePEaS 2019).
- J. Sanz-Cruzado, S.M. Pepa, P. Castells. Structural novelty and diversity in link prediction. 0th International Workshop on Modeling Social Media (MSM 2018) at The Web Conference (WWW 2018)
-
Field Summary
Fields Modifier and Type Field Description private ClusteringCoefficient<U>clustCoefClustering coefficient metric. -
Constructor Summary
Constructors Constructor Description ClusteringCoefficientComplement()Constructor.ClusteringCoefficientComplement(EdgeOrientation vSel, EdgeOrientation wSel)Constructor. -
Method Summary
-
Field Details
-
clustCoef
Clustering coefficient metric.
-
-
Constructor Details
-
ClusteringCoefficientComplement
public ClusteringCoefficientComplement()Constructor. Applies the usual directed clustering coefficient of a graph. -
ClusteringCoefficientComplement
Constructor. This constructor allows to specify the direction of the clustering coefficient metrics.- Parameters:
vSel- First selection of nodes.wSel- Second selection of nodes.
-
-
Method Details
-
compute
Description copied from interface:GraphMetricComputes the value.- Specified by:
computein interfaceGraphMetric<U>- Parameters:
graph- graph metric.- Returns:
- the value of the metric.
-