C# Class Smrf.NodeXL.Algorithms.MotifCalculator

Calculates motifs for a specified graph.
Inheritance: GraphMetricCalculatorBase
Mostra file Open project: 2014-sed-team3/term-project

Public Methods

Method Description
AssertValid ( ) : void
TryCalculateMotifs ( IGraph graph, Motifs motifsToCalculate, Int32 dMinimum, Int32 dMaximum, Int32 nMinimum, Int32 nMaximum, BackgroundWorker backgroundWorker, ICollection &motifs ) : System.Boolean

Protected Methods

Method Description
AddSpanVertexToPotentialDConnectorMotifs ( IVertex oPotentialSpanVertex, ICollection oDPotentialAnchorVertices, DConnectorMotif>.Dictionary oPotentialDConnectorMotifs ) : void
DVerticesMightBeAnchors ( ICollection oVertices, Int32 iDMinimum, Int32 iDMaximum ) : System.Boolean
FilterDConnectorMotifs ( DConnectorMotif>.Dictionary oPotentialDConnectorMotifs ) : ICollection
ReportProgressIfNecessary ( Int32 iCalculationsSoFar, Int32 iTotalCalculations, BackgroundWorker oBackgroundWorker ) : System.Boolean
SetCliqueMotifScale ( ICollection oCliqueMotifs ) : void
SetDConnectorMotifSpanScale ( ICollection oDConnectorMotifs ) : void
SetFanMotifArcScale ( ICollection oFanMotifs ) : void
TryCalculateCliqueMotifs ( IGraph oGraph, Int32 iNMinimum, Int32 iNMaximum, BackgroundWorker oBackgroundWorker, ICollection oExistingMotifs, ICollection &oMotifs ) : System.Boolean
TryCalculateDConnectorMotifs ( IGraph oGraph, Int32 iDMinimum, Int32 iDMaximum, BackgroundWorker oBackgroundWorker, ICollection &oMotifs ) : System.Boolean
TryCalculateFanMotifs ( IGraph oGraph, BackgroundWorker oBackgroundWorker, ICollection &oMotifs ) : System.Boolean

Private Methods

Method Description
AddDConnectorMotif ( HashSet currentDConnectorMotifs, DConnectorMotif>.Dictionary verticesAlreadyInDConnectorMotifs, DConnectorMotif connectorMotifToAdd ) : void

Method Details

AddSpanVertexToPotentialDConnectorMotifs() protected method

protected AddSpanVertexToPotentialDConnectorMotifs ( IVertex oPotentialSpanVertex, ICollection oDPotentialAnchorVertices, DConnectorMotif>.Dictionary oPotentialDConnectorMotifs ) : void
oPotentialSpanVertex IVertex
oDPotentialAnchorVertices ICollection
oPotentialDConnectorMotifs DConnectorMotif>.Dictionary
return void

AssertValid() public method

public AssertValid ( ) : void
return void

DVerticesMightBeAnchors() protected method

protected DVerticesMightBeAnchors ( ICollection oVertices, Int32 iDMinimum, Int32 iDMaximum ) : System.Boolean
oVertices ICollection
iDMinimum System.Int32
iDMaximum System.Int32
return System.Boolean

FilterDConnectorMotifs() protected method

protected FilterDConnectorMotifs ( DConnectorMotif>.Dictionary oPotentialDConnectorMotifs ) : ICollection
oPotentialDConnectorMotifs DConnectorMotif>.Dictionary
return ICollection

ReportProgressIfNecessary() protected method

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

SetCliqueMotifScale() protected method

protected SetCliqueMotifScale ( ICollection oCliqueMotifs ) : void
oCliqueMotifs ICollection
return void

SetDConnectorMotifSpanScale() protected method

protected SetDConnectorMotifSpanScale ( ICollection oDConnectorMotifs ) : void
oDConnectorMotifs ICollection
return void

SetFanMotifArcScale() protected method

protected SetFanMotifArcScale ( ICollection oFanMotifs ) : void
oFanMotifs ICollection
return void

TryCalculateCliqueMotifs() protected method

protected TryCalculateCliqueMotifs ( IGraph oGraph, Int32 iNMinimum, Int32 iNMaximum, BackgroundWorker oBackgroundWorker, ICollection oExistingMotifs, ICollection &oMotifs ) : System.Boolean
oGraph IGraph
iNMinimum System.Int32
iNMaximum System.Int32
oBackgroundWorker System.ComponentModel.BackgroundWorker
oExistingMotifs ICollection
oMotifs ICollection
return System.Boolean

TryCalculateDConnectorMotifs() protected method

protected TryCalculateDConnectorMotifs ( IGraph oGraph, Int32 iDMinimum, Int32 iDMaximum, BackgroundWorker oBackgroundWorker, ICollection &oMotifs ) : System.Boolean
oGraph IGraph
iDMinimum System.Int32
iDMaximum System.Int32
oBackgroundWorker System.ComponentModel.BackgroundWorker
oMotifs ICollection
return System.Boolean

TryCalculateFanMotifs() protected method

protected TryCalculateFanMotifs ( IGraph oGraph, BackgroundWorker oBackgroundWorker, ICollection &oMotifs ) : System.Boolean
oGraph IGraph
oBackgroundWorker System.ComponentModel.BackgroundWorker
oMotifs ICollection
return System.Boolean

TryCalculateMotifs() public method

public TryCalculateMotifs ( IGraph graph, Motifs motifsToCalculate, Int32 dMinimum, Int32 dMaximum, Int32 nMinimum, Int32 nMaximum, BackgroundWorker backgroundWorker, ICollection &motifs ) : System.Boolean
graph IGraph
motifsToCalculate Motifs
dMinimum System.Int32
dMaximum System.Int32
nMinimum System.Int32
nMaximum System.Int32
backgroundWorker System.ComponentModel.BackgroundWorker
motifs ICollection
return System.Boolean