C# Класс 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.

Наследование: GraphMetricCalculatorBase
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
CalculateReciprocatedVertexPairRatio ( IVertex oVertex, HashSet oVertexIDPairs ) : Nullable
GetVertexIDPairs ( IGraph oGraph ) : HashSet

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

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

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

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

public CalculateGraphMetrics ( IGraph graph ) : Nullable>.Dictionary
graph IGraph
Результат Nullable>.Dictionary

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

protected CalculateReciprocatedVertexPairRatio ( IVertex oVertex, HashSet oVertexIDPairs ) : Nullable
oVertex IVertex
oVertexIDPairs HashSet
Результат Nullable

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

protected GetVertexIDPairs ( IGraph oGraph ) : HashSet
oGraph IGraph
Результат HashSet

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

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

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

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