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
Show file Open project: 2014-sed-team3/term-project

Public Methods

Method Description
AssertValid ( ) : void
ClusteringCoefficientCalculator ( ) : System

Initializes a new instance of the class.

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

Protected Methods

Method Description
CalculateClusteringCoefficient ( IVertex oVertex, System.Boolean bGraphIsDirected ) : Double

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

CalculateClusteringCoefficient() protected method

protected CalculateClusteringCoefficient ( IVertex oVertex, System.Boolean bGraphIsDirected ) : Double
oVertex IVertex
bGraphIsDirected System.Boolean
return Double

ClusteringCoefficientCalculator() public method

Initializes a new instance of the class.
public ClusteringCoefficientCalculator ( ) : System
return System

TryCalculateGraphMetrics() public method

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