C# Class Smrf.NodeXL.ExcelTemplate.TopNByMetricCalculator2

Calculates top-N-by metrics for the graph.
This calculator will find, for example, the top 10 vertex names ranked by betweenness centrality, and the top 20 vertex names ranked by PageRank. Its IGraphMetricCalculator2.TryCalculateGraphMetrics implementation returns multiple column pairs, one pair for each top-N-by table that needs to be written to the top-N-by worksheet.

This graph metric calculator differs from most other calculators in that it reads arbitrary columns in the Excel workbook. The other calculators look only at how the graph's vertices are connected to each other. Therefore, there is no corresponding lower-level TopNByMetricCalculator class in the Smrf.NodeXL.Algorithms namespace, and the top-N-by metrics cannot be calculated outside of this ExcelTemplate project.

Inheritance: TopItemsCalculatorBase2
ファイルを表示 Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
AssertValid ( ) : void
TopNByMetricCalculator2 ( ) : System

Initializes a new instance of the class.

Protected Methods

Method Description
TryCalculateGraphMetricsInternal ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

TopNByMetricCalculator2() public method

Initializes a new instance of the class.
public TopNByMetricCalculator2 ( ) : System
return System

TryCalculateGraphMetricsInternal() protected method

protected TryCalculateGraphMetricsInternal ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
return System.Boolean