C# Класс Smrf.NodeXL.Algorithms.OneSnapGraphMetricCalculatorBase

Calculates one per-vertex graph metric using the SNAP graph library.
This is a base class for several classes that use the SNAP graph library to calculate one per-vertex graph metric in the enumeration. "Per-vertex" means that a metric is computed for each vertex in the graph, as opposed to "per-graph," for which there is a single metric value for the entire graph.

If a vertex is isolated, its metric value is zero.

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

Защищенные свойства (Protected)

Свойство Тип Описание
m_eSnapGraphMetric SnapGraphMetrics
m_sExpectedHeaderLineInOutputFile String
m_sGraphMetricDescription String

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

Метод Описание
AssertValid ( ) : void
TryCalculateGraphMetrics ( IGraph graph, BackgroundWorker backgroundWorker, Double>.Dictionary &graphMetrics ) : System.Boolean

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

Метод Описание
OneSnapGraphMetricCalculatorBase ( SnapGraphMetrics snapGraphMetric, String graphMetricDescription, String expectedHeaderLineInOutputFile ) : System

Initializes a new instance of the class.

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

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

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

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

Initializes a new instance of the class.
protected OneSnapGraphMetricCalculatorBase ( SnapGraphMetrics snapGraphMetric, String graphMetricDescription, String expectedHeaderLineInOutputFile ) : System
snapGraphMetric SnapGraphMetrics /// The graph metric to calculate. Must be just one value in the enumeration. ///
graphMetricDescription String /// A description suitable for use within the sentence "Calculating /// [GraphMetricDescription]." ///
expectedHeaderLineInOutputFile String /// The expected header line in the output file created by SNAP. This is /// used for diagnostic purposes. ///
Результат System

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

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

Описание свойств

m_eSnapGraphMetric защищенное свойство

protected SnapGraphMetrics m_eSnapGraphMetric
Результат SnapGraphMetrics

m_sExpectedHeaderLineInOutputFile защищенное свойство

protected String m_sExpectedHeaderLineInOutputFile
Результат String

m_sGraphMetricDescription защищенное свойство

protected String m_sGraphMetricDescription
Результат String