C# Class Smrf.NodeXL.UnitTests.TestGraphUtil

Utility methods for testing graph components.
All methods are static.
Show file Open project: 2014-sed-team3/term-project Class Usage Examples

Public Properties

Property Type Description
AllBoolean System.Boolean[]
AllGraphDirectedness GraphDirectedness[]

Public Methods

Method Description
AddVertices ( IGraph oGraph, Int32 iVerticesToAdd ) : IVertex[]
GetEdgeCountForCompleteGraph ( Int32 iVertices ) : Int32
MakeGraphComplete ( IGraph oGraph, IVertex aoVertices, System.Boolean bDirected ) : IEdge[]

Method Details

AddVertices() public static method

public static AddVertices ( IGraph oGraph, Int32 iVerticesToAdd ) : IVertex[]
oGraph IGraph
iVerticesToAdd System.Int32
return IVertex[]

GetEdgeCountForCompleteGraph() public static method

public static GetEdgeCountForCompleteGraph ( Int32 iVertices ) : Int32
iVertices System.Int32
return System.Int32

MakeGraphComplete() public static method

public static MakeGraphComplete ( IGraph oGraph, IVertex aoVertices, System.Boolean bDirected ) : IEdge[]
oGraph IGraph
aoVertices IVertex
bDirected System.Boolean
return IEdge[]

Property Details

AllBoolean public static property

Array of all possible Boolean values.
public static Boolean[],System AllBoolean
return System.Boolean[]

AllGraphDirectedness public static property

Array of all possible GraphDirectedness values.
public static GraphDirectedness[] AllGraphDirectedness
return GraphDirectedness[]