C# Class Smrf.NodeXL.Algorithms.VertexDegreeCalculator

Calculates the in-degree, out-degree, and degree for each of the graph's vertices.
This calculator includes all self-loops in its calculations. It also includes all parallel edges, which may not be expected by the user.
Inheritance: GraphMetricCalculatorBase
Exibir arquivo Open project: 2014-sed-team3/term-project

Public Methods

Method Description
AssertValid ( ) : void
CalculateGraphMetrics ( IGraph graph ) : VertexDegrees>.Dictionary
TryCalculateGraphMetrics ( IGraph graph, BackgroundWorker backgroundWorker, VertexDegrees>.Dictionary &graphMetrics ) : System.Boolean
VertexDegreeCalculator ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
CalculateVertexDegrees ( IVertex oVertex, Int32 &iInDegree, Int32 &iOutDegree ) : void

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

CalculateGraphMetrics() public method

public CalculateGraphMetrics ( IGraph graph ) : VertexDegrees>.Dictionary
graph IGraph
return VertexDegrees>.Dictionary

CalculateVertexDegrees() protected method

protected CalculateVertexDegrees ( IVertex oVertex, Int32 &iInDegree, Int32 &iOutDegree ) : void
oVertex IVertex
iInDegree System.Int32
iOutDegree System.Int32
return void

TryCalculateGraphMetrics() public method

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

VertexDegreeCalculator() public method

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