C# Класс 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.
Наследование: GraphMetricCalculatorBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

CalculateGraphMetrics() публичный Метод

public CalculateGraphMetrics ( IGraph graph, Nullable &reciprocatedVertexPairRatio, Nullable &reciprocatedEdgeRatio ) : void
graph IGraph
reciprocatedVertexPairRatio Nullable
reciprocatedEdgeRatio Nullable
Результат void

CalculateReciprocatedEdgeRatio() защищенный Метод

protected CalculateReciprocatedEdgeRatio ( IGraph oGraph, Int32 iVertexPairsWithBothDirectedEdges ) : Nullable
oGraph IGraph
iVertexPairsWithBothDirectedEdges System.Int32
Результат Nullable

CalculateReciprocatedVertexPairRatio() защищенный Метод

protected CalculateReciprocatedVertexPairRatio ( IGraph oGraph, Int32 iVertexPairsWithBothDirectedEdges, HashSet oVertexIDPairsUnordered ) : Nullable
oGraph IGraph
iVertexPairsWithBothDirectedEdges System.Int32
oVertexIDPairsUnordered HashSet
Результат Nullable

CountEdges() защищенный Метод

protected CountEdges ( IGraph oGraph, HashSet &oVertexIDPairsOrdered, HashSet &oVertexIDPairsUnordered ) : void
oGraph IGraph
oVertexIDPairsOrdered HashSet
oVertexIDPairsUnordered HashSet
Результат void

CountVertexPairsWithBothDirectedEdges() защищенный Метод

protected CountVertexPairsWithBothDirectedEdges ( IGraph oGraph, HashSet oVertexIDPairsOrdered ) : Int32
oGraph IGraph
oVertexIDPairsOrdered HashSet
Результат System.Int32

OverallReciprocationCalculator() публичный Метод

Initializes a new instance of the class.
public OverallReciprocationCalculator ( ) : System
Результат System

TryCalculateGraphMetrics() публичный Метод

public TryCalculateGraphMetrics ( IGraph graph, BackgroundWorker backgroundWorker, Nullable &reciprocatedVertexPairRatio, Nullable &reciprocatedEdgeRatio ) : System.Boolean
graph IGraph
backgroundWorker System.ComponentModel.BackgroundWorker
reciprocatedVertexPairRatio Nullable
reciprocatedEdgeRatio Nullable
Результат System.Boolean