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
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

공개 메소드들

메소드 설명
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