C# Class Smrf.NodeXL.Algorithms.OverallReciprocationCalculator

Calculates the reciprocated vertex pair ratio and the reciprocated edge pair ratio for the graph.
The calculations skip all self-loops and duplicate edges, which would render the ratios invalid.
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 &reciprocatedVertexPairRatio, Nullable &reciprocatedEdgeRatio ) : void
OverallReciprocationCalculator ( ) : System

Initializes a new instance of the class.

TryCalculateGraphMetrics ( IGraph graph, BackgroundWorker backgroundWorker, Nullable &reciprocatedVertexPairRatio, Nullable &reciprocatedEdgeRatio ) : System.Boolean

Méthodes protégées

Méthode Description
CalculateReciprocatedEdgeRatio ( IGraph oGraph, Int32 iVertexPairsWithBothDirectedEdges ) : Nullable
CalculateReciprocatedVertexPairRatio ( IGraph oGraph, Int32 iVertexPairsWithBothDirectedEdges, HashSet oVertexIDPairsUnordered ) : Nullable
CountEdges ( IGraph oGraph, HashSet &oVertexIDPairsOrdered, HashSet &oVertexIDPairsUnordered ) : void
CountVertexPairsWithBothDirectedEdges ( IGraph oGraph, HashSet oVertexIDPairsOrdered ) : Int32

Method Details

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

CalculateGraphMetrics() public méthode

public CalculateGraphMetrics ( IGraph graph, Nullable &reciprocatedVertexPairRatio, Nullable &reciprocatedEdgeRatio ) : void
graph IGraph
reciprocatedVertexPairRatio Nullable
reciprocatedEdgeRatio Nullable
Résultat void

CalculateReciprocatedEdgeRatio() protected méthode

protected CalculateReciprocatedEdgeRatio ( IGraph oGraph, Int32 iVertexPairsWithBothDirectedEdges ) : Nullable
oGraph IGraph
iVertexPairsWithBothDirectedEdges System.Int32
Résultat Nullable

CalculateReciprocatedVertexPairRatio() protected méthode

protected CalculateReciprocatedVertexPairRatio ( IGraph oGraph, Int32 iVertexPairsWithBothDirectedEdges, HashSet oVertexIDPairsUnordered ) : Nullable
oGraph IGraph
iVertexPairsWithBothDirectedEdges System.Int32
oVertexIDPairsUnordered HashSet
Résultat Nullable

CountEdges() protected méthode

protected CountEdges ( IGraph oGraph, HashSet &oVertexIDPairsOrdered, HashSet &oVertexIDPairsUnordered ) : void
oGraph IGraph
oVertexIDPairsOrdered HashSet
oVertexIDPairsUnordered HashSet
Résultat void

CountVertexPairsWithBothDirectedEdges() protected méthode

protected CountVertexPairsWithBothDirectedEdges ( IGraph oGraph, HashSet oVertexIDPairsOrdered ) : Int32
oGraph IGraph
oVertexIDPairsOrdered HashSet
Résultat System.Int32

OverallReciprocationCalculator() public méthode

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

TryCalculateGraphMetrics() public méthode

public TryCalculateGraphMetrics ( IGraph graph, BackgroundWorker backgroundWorker, Nullable &reciprocatedVertexPairRatio, Nullable &reciprocatedEdgeRatio ) : System.Boolean
graph IGraph
backgroundWorker System.ComponentModel.BackgroundWorker
reciprocatedVertexPairRatio Nullable
reciprocatedEdgeRatio Nullable
Résultat System.Boolean