C# Class Smrf.NodeXL.Algorithms.IntergroupEdgeCalculator

Given a collection of vertex groups, this class counts the number of edges and the sum of edge weights for the edges between pairs of groups, and for the edges within each group.
Inheritance: GraphMetricCalculatorBase
Mostra file Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
AssertValid ( ) : void
CalculateGraphMetrics ( IGraph graph, IList groups, System.Boolean useDirectedness ) : IList
IntergroupEdgeCalculator ( ) : System

Initializes a new instance of the class.

TryCalculateGraphMetrics ( IGraph graph, BackgroundWorker backgroundWorker, IList groups, System.Boolean useDirectedness, IList &graphMetrics ) : System.Boolean

Protected Methods

Method Description
CompareIntergroupEdges ( IntergroupEdgeInfo oIntergroupEdge1, IntergroupEdgeInfo oIntergroupEdge2 ) : Int32
CountIncidentEdge ( IEdge oIntergroupEdge, Int32 iGroup1Index, Int32 iGroup2Index, IList oIntergroupEdges, IntergroupEdgeInfo>.Dictionary oIntergroupEdgeIndexes ) : void
IncidentEdgeShouldBeCounted ( IEdge oIncidentEdge, IVertex oVertexInGroup1, Int32 iGroup1Index, Int32>.Dictionary oGroupIndexDictionary, System.Boolean bUseDirectedness, System.Boolean bGraphIsDirected, Int32 &iGroup2Index ) : System.Boolean

Method Details

AssertValid() public method

public AssertValid ( ) : void
return void

CalculateGraphMetrics() public method

public CalculateGraphMetrics ( IGraph graph, IList groups, System.Boolean useDirectedness ) : IList
graph IGraph
groups IList
useDirectedness System.Boolean
return IList

CompareIntergroupEdges() protected static method

protected static CompareIntergroupEdges ( IntergroupEdgeInfo oIntergroupEdge1, IntergroupEdgeInfo oIntergroupEdge2 ) : Int32
oIntergroupEdge1 Smrf.NodeXL.Core.IntergroupEdgeInfo
oIntergroupEdge2 Smrf.NodeXL.Core.IntergroupEdgeInfo
return System.Int32

CountIncidentEdge() protected method

protected CountIncidentEdge ( IEdge oIntergroupEdge, Int32 iGroup1Index, Int32 iGroup2Index, IList oIntergroupEdges, IntergroupEdgeInfo>.Dictionary oIntergroupEdgeIndexes ) : void
oIntergroupEdge IEdge
iGroup1Index System.Int32
iGroup2Index System.Int32
oIntergroupEdges IList
oIntergroupEdgeIndexes IntergroupEdgeInfo>.Dictionary
return void

IncidentEdgeShouldBeCounted() protected method

protected IncidentEdgeShouldBeCounted ( IEdge oIncidentEdge, IVertex oVertexInGroup1, Int32 iGroup1Index, Int32>.Dictionary oGroupIndexDictionary, System.Boolean bUseDirectedness, System.Boolean bGraphIsDirected, Int32 &iGroup2Index ) : System.Boolean
oIncidentEdge IEdge
oVertexInGroup1 IVertex
iGroup1Index System.Int32
oGroupIndexDictionary Int32>.Dictionary
bUseDirectedness System.Boolean
bGraphIsDirected System.Boolean
iGroup2Index System.Int32
return System.Boolean

IntergroupEdgeCalculator() public method

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

TryCalculateGraphMetrics() public method

public TryCalculateGraphMetrics ( IGraph graph, BackgroundWorker backgroundWorker, IList groups, System.Boolean useDirectedness, IList &graphMetrics ) : System.Boolean
graph IGraph
backgroundWorker System.ComponentModel.BackgroundWorker
groups IList
useDirectedness System.Boolean
graphMetrics IList
return System.Boolean