C# Class Smrf.NodeXL.Algorithms.ReciprocatedVertexPairRatioCalculator

Calculates the reciprocated vertex pair ratio for each of the graph's vertices.
The reciprocated vertex pair ratio for a vertex in a directed graph is the number of adjacent vertices the vertex is connected to with edges in both directions, divided by the number of adjacent vertices. It is not calculated for an undirected graph.

The calculations can handle self-loops, but they are rendered invalid if the graph has duplicate edges.

Inheritance: GraphMetricCalculatorBase
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Méthodes publiques

Méthode Description
AssertValid ( ) : void
CalculateGraphMetrics ( IGraph graph ) : Nullable>.Dictionary
ReciprocatedVertexPairRatioCalculator ( ) : System

Initializes a new instance of the class.

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

Méthodes protégées

Méthode Description
CalculateReciprocatedVertexPairRatio ( IVertex oVertex, HashSet oVertexIDPairs ) : Nullable
GetVertexIDPairs ( IGraph oGraph ) : HashSet

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

CalculateGraphMetrics() public méthode

public CalculateGraphMetrics ( IGraph graph ) : Nullable>.Dictionary
graph IGraph
Résultat Nullable>.Dictionary

CalculateReciprocatedVertexPairRatio() protected méthode

protected CalculateReciprocatedVertexPairRatio ( IVertex oVertex, HashSet oVertexIDPairs ) : Nullable
oVertex IVertex
oVertexIDPairs HashSet
Résultat Nullable

GetVertexIDPairs() protected méthode

protected GetVertexIDPairs ( IGraph oGraph ) : HashSet
oGraph IGraph
Résultat HashSet

ReciprocatedVertexPairRatioCalculator() public méthode

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

TryCalculateGraphMetrics() public méthode

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