C# Class Smrf.NodeXL.Algorithms.GraphMetricCalculatorBase

Base class for classes that implement .
Inheritance: Object, IGraphMetricCalculator
Exibir arquivo Open project: 2014-sed-team3/term-project

Public Methods

Method Description
CalculateProgressInPercent ( Int32 calculationsCompleted, Int32 totalCalculations ) : Int32
SetSnapGraphMetricCalculatorPath ( String snapGraphMetricCalculatorPath ) : void

Protected Methods

Method Description
CalculateEdgesInFullyConnectedNeighborhood ( Int32 iAdjacentVertices, System.Boolean bGraphIsDirected ) : Int32
CalculateSnapGraphMetrics ( IGraph oGraph, SnapGraphMetrics eSnapGraphMetrics ) : String
CalculateSnapGraphMetrics ( IGraph oGraph, SnapGraphMetrics eSnapGraphMetrics, List oGroups ) : String
CreateSnapGroupInputFile ( List oGroups, String sSnapGroupInputFilePath ) : void
CreateSnapInputFile ( IGraph oGraph, String sSnapInputFilePath ) : void
DeleteSnapFile ( String sSnapFilePath ) : void
GetSnapGraphMetricCalculatorPath ( SnapGraphMetrics eSnapGraphMetrics ) : String
ParseSnapDoubleGraphMetricValue ( String asFieldsFromSnapOutputFileLine, Int32 iFieldIndex ) : Double
ParseSnapInt32GraphMetricValue ( String asFieldsFromSnapOutputFileLine, Int32 iFieldIndex ) : Int32
ReportCannotCalculateGraphMetrics ( String sMessage ) : void
ReportProgress ( Int32 iCalculationsSoFar, Int32 iTotalCalculations, BackgroundWorker oBackgroundWorker ) : void
ReportProgressAndCheckCancellationPending ( Int32 iCalculationsSoFar, Int32 iTotalCalculations, BackgroundWorker oBackgroundWorker ) : System.Boolean
TryCallSnapGraphMetricCalculator ( SnapGraphMetrics eSnapGraphMetrics, String sArguments, String &sStandardError ) : System.Boolean

Private Methods

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

Static constructor for the GraphMetricCalculatorBase class.

Method Details

CalculateEdgesInFullyConnectedNeighborhood() protected method

protected CalculateEdgesInFullyConnectedNeighborhood ( Int32 iAdjacentVertices, System.Boolean bGraphIsDirected ) : Int32
iAdjacentVertices System.Int32
bGraphIsDirected System.Boolean
return System.Int32

CalculateProgressInPercent() public static method

public static CalculateProgressInPercent ( Int32 calculationsCompleted, Int32 totalCalculations ) : Int32
calculationsCompleted System.Int32
totalCalculations System.Int32
return System.Int32

CalculateSnapGraphMetrics() protected method

protected CalculateSnapGraphMetrics ( IGraph oGraph, SnapGraphMetrics eSnapGraphMetrics ) : String
oGraph IGraph
eSnapGraphMetrics SnapGraphMetrics
return String

CalculateSnapGraphMetrics() protected method

protected CalculateSnapGraphMetrics ( IGraph oGraph, SnapGraphMetrics eSnapGraphMetrics, List oGroups ) : String
oGraph IGraph
eSnapGraphMetrics SnapGraphMetrics
oGroups List
return String

CreateSnapGroupInputFile() protected method

protected CreateSnapGroupInputFile ( List oGroups, String sSnapGroupInputFilePath ) : void
oGroups List
sSnapGroupInputFilePath String
return void

CreateSnapInputFile() protected method

protected CreateSnapInputFile ( IGraph oGraph, String sSnapInputFilePath ) : void
oGraph IGraph
sSnapInputFilePath String
return void

DeleteSnapFile() protected method

protected DeleteSnapFile ( String sSnapFilePath ) : void
sSnapFilePath String
return void

GetSnapGraphMetricCalculatorPath() protected method

protected GetSnapGraphMetricCalculatorPath ( SnapGraphMetrics eSnapGraphMetrics ) : String
eSnapGraphMetrics SnapGraphMetrics
return String

ParseSnapDoubleGraphMetricValue() protected method

protected ParseSnapDoubleGraphMetricValue ( String asFieldsFromSnapOutputFileLine, Int32 iFieldIndex ) : Double
asFieldsFromSnapOutputFileLine String
iFieldIndex System.Int32
return Double

ParseSnapInt32GraphMetricValue() protected method

protected ParseSnapInt32GraphMetricValue ( String asFieldsFromSnapOutputFileLine, Int32 iFieldIndex ) : Int32
asFieldsFromSnapOutputFileLine String
iFieldIndex System.Int32
return System.Int32

ReportCannotCalculateGraphMetrics() protected method

protected ReportCannotCalculateGraphMetrics ( String sMessage ) : void
sMessage String
return void

ReportProgress() protected method

protected ReportProgress ( Int32 iCalculationsSoFar, Int32 iTotalCalculations, BackgroundWorker oBackgroundWorker ) : void
iCalculationsSoFar System.Int32
iTotalCalculations System.Int32
oBackgroundWorker System.ComponentModel.BackgroundWorker
return void

ReportProgressAndCheckCancellationPending() protected method

protected ReportProgressAndCheckCancellationPending ( Int32 iCalculationsSoFar, Int32 iTotalCalculations, BackgroundWorker oBackgroundWorker ) : System.Boolean
iCalculationsSoFar System.Int32
iTotalCalculations System.Int32
oBackgroundWorker System.ComponentModel.BackgroundWorker
return System.Boolean

SetSnapGraphMetricCalculatorPath() static public method

static public SetSnapGraphMetricCalculatorPath ( String snapGraphMetricCalculatorPath ) : void
snapGraphMetricCalculatorPath String
return void

TryCallSnapGraphMetricCalculator() protected method

protected TryCallSnapGraphMetricCalculator ( SnapGraphMetrics eSnapGraphMetrics, String sArguments, String &sStandardError ) : System.Boolean
eSnapGraphMetrics SnapGraphMetrics
sArguments String
sStandardError String
return System.Boolean