C# Class Smrf.NodeXL.Algorithms.ClusteringCoefficientCalculator

Calculates the clustering coefficient for each of the graph's vertices.
See this article for a definition of clustering coefficient:

http://en.wikipedia.org/wiki/Clustering_coefficient

This calculator skips all self-loops, which would render the calculations invalid. The calculations are rendered invalid if the graph has duplicate edges, however.

Inheritance: OneDoubleGraphMetricCalculatorBase
Afficher le fichier Open project: 2014-sed-team3/term-project

Méthodes publiques

Méthode Description
AssertValid ( ) : void
ClusteringCoefficientCalculator ( ) : System

Initializes a new instance of the class.

TryCalculateGraphMetrics ( IGraph graph, BackgroundWorker backgroundWorker, Double>.Dictionary &graphMetrics ) : System.Boolean

Méthodes protégées

Méthode Description
CalculateClusteringCoefficient ( IVertex oVertex, System.Boolean bGraphIsDirected ) : Double

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

CalculateClusteringCoefficient() protected méthode

protected CalculateClusteringCoefficient ( IVertex oVertex, System.Boolean bGraphIsDirected ) : Double
oVertex IVertex
bGraphIsDirected System.Boolean
Résultat Double

ClusteringCoefficientCalculator() public méthode

Initializes a new instance of the class.
public ClusteringCoefficientCalculator ( ) : System
Résultat System

TryCalculateGraphMetrics() public méthode

public TryCalculateGraphMetrics ( IGraph graph, BackgroundWorker backgroundWorker, Double>.Dictionary &graphMetrics ) : System.Boolean
graph IGraph
backgroundWorker System.ComponentModel.BackgroundWorker
graphMetrics Double>.Dictionary
Résultat System.Boolean