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

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

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

Метод Описание
AssertValid ( ) : void
TopNByMetricCalculator2 ( ) : System

Initializes a new instance of the class.

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

Метод Описание
TryCalculateGraphMetricsInternal ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean

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

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

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

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

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

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

protected TryCalculateGraphMetricsInternal ( IGraph oGraph, CalculateGraphMetricsContext oCalculateGraphMetricsContext, List oGraphMetricColumns ) : System.Boolean
oGraph IGraph
oCalculateGraphMetricsContext CalculateGraphMetricsContext
oGraphMetricColumns List
Результат System.Boolean