C# Class Smrf.NodeXL.Core.EdgeCollection

Represents a collection of edges.
This is a collection of objects that implement the IEdge interface. You can add edges to the collection, remove them, access an edge, and enumerate all edges.
Inheritance: NodeXLBase, IEdgeCollection
Afficher le fichier Open project: 2014-sed-team3/term-project Class Usage Examples

Protected Properties

Свойство Type Description
m_iEdges System.Int32
m_oLinkedList LinkedList
m_oParentGraph IGraph

Méthodes publiques

Méthode Description
Add ( IVertex vertex1, IVertex vertex2 ) : IEdge
Add ( IVertex vertex1, IVertex vertex2, System.Boolean isDirected ) : IEdge
Add ( IEdge edge ) : void
AssertValid ( ) : void
Clear ( ) : void
Contains ( IEdge edge ) : System.Boolean
Contains ( Int32 id ) : System.Boolean
Contains ( String name ) : System.Boolean
CopyTo ( IEdge array, Int32 index ) : void
EdgeCollection ( IGraph graph ) : System

Initializes a new instance of the EdgeCollection class.

Find ( Int32 id, IEdge &edge ) : System.Boolean
Find ( String name, IEdge &edge ) : System.Boolean
GetConnectingEdges ( IVertex vertex1, IVertex vertex2 ) : ICollection
GetEnumerator ( ) : IEnumerator
Remove ( IEdge edge ) : System.Boolean
Remove ( Int32 id ) : System.Boolean
Remove ( String name ) : System.Boolean
RemoveDuplicates ( ) : void
ToString ( ) : String

Méthodes protégées

Méthode Description
AddToGroup ( IEdge oEdge, Vertex oVertex ) : void
CheckDirectednessBeforeAddingEdge ( System.Boolean bEdgeIsDirected, String sArgumentName ) : void
CheckVertex ( IVertex oVertex, String sMethodName, String sArgumentName ) : void
EdgeToVertices ( IEdge oEdge, String sMethodName, String sArgumentName, Vertex &oVertex1, Vertex &oVertex2 ) : void
Find ( System.Boolean bByID, Int32 iID, String sName, IEdge &oEdge ) : System.Boolean
GetDegree ( Vertex oVertex ) : Int32
GetIncomingOrOutgoingEdges ( Vertex oVertex, System.Boolean bIncludeIncoming, System.Boolean bIncludeOutgoing ) : ICollection
GetPredecessorOrSuccessorVertices ( Vertex oVertex, System.Boolean bIncludePredecessor, System.Boolean bIncludeSuccessor ) : ICollection
IVertexToVertex ( IVertex oVertex, String sMethodOrPropertyName ) : Vertex
OnEdgeAdded ( IEdge oEdge ) : void
OnEdgeRemoved ( IEdge oEdge, System.Boolean bFireEdgeRemoved ) : void
RemoveAllFromGroup ( Vertex oVertex ) : void
RemoveFromGroup ( IEdge oEdge, Vertex oVertex ) : System.Boolean

Private Methods

Méthode Description
System ( ) : System.Collections.IEnumerator

Method Details

Add() public méthode

public Add ( IVertex vertex1, IVertex vertex2 ) : IEdge
vertex1 IVertex
vertex2 IVertex
Résultat IEdge

Add() public méthode

public Add ( IVertex vertex1, IVertex vertex2, System.Boolean isDirected ) : IEdge
vertex1 IVertex
vertex2 IVertex
isDirected System.Boolean
Résultat IEdge

Add() public méthode

public Add ( IEdge edge ) : void
edge IEdge
Résultat void

AddToGroup() protected méthode

protected AddToGroup ( IEdge oEdge, Vertex oVertex ) : void
oEdge IEdge
oVertex Vertex
Résultat void

AssertValid() public méthode

public AssertValid ( ) : void
Résultat void

CheckDirectednessBeforeAddingEdge() protected méthode

protected CheckDirectednessBeforeAddingEdge ( System.Boolean bEdgeIsDirected, String sArgumentName ) : void
bEdgeIsDirected System.Boolean
sArgumentName String
Résultat void

CheckVertex() protected méthode

protected CheckVertex ( IVertex oVertex, String sMethodName, String sArgumentName ) : void
oVertex IVertex
sMethodName String
sArgumentName String
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Contains() public méthode

public Contains ( IEdge edge ) : System.Boolean
edge IEdge
Résultat System.Boolean

Contains() public méthode

public Contains ( Int32 id ) : System.Boolean
id System.Int32
Résultat System.Boolean

Contains() public méthode

public Contains ( String name ) : System.Boolean
name String
Résultat System.Boolean

CopyTo() public méthode

public CopyTo ( IEdge array, Int32 index ) : void
array IEdge
index System.Int32
Résultat void

EdgeCollection() public méthode

Initializes a new instance of the EdgeCollection class.
public EdgeCollection ( IGraph graph ) : System
graph IGraph /// to which the new collection belongs. Can't be /// null. ///
Résultat System

EdgeToVertices() protected méthode

protected EdgeToVertices ( IEdge oEdge, String sMethodName, String sArgumentName, Vertex &oVertex1, Vertex &oVertex2 ) : void
oEdge IEdge
sMethodName String
sArgumentName String
oVertex1 Vertex
oVertex2 Vertex
Résultat void

Find() protected méthode

protected Find ( System.Boolean bByID, Int32 iID, String sName, IEdge &oEdge ) : System.Boolean
bByID System.Boolean
iID System.Int32
sName String
oEdge IEdge
Résultat System.Boolean

Find() public méthode

public Find ( Int32 id, IEdge &edge ) : System.Boolean
id System.Int32
edge IEdge
Résultat System.Boolean

Find() public méthode

public Find ( String name, IEdge &edge ) : System.Boolean
name String
edge IEdge
Résultat System.Boolean

GetConnectingEdges() public méthode

public GetConnectingEdges ( IVertex vertex1, IVertex vertex2 ) : ICollection
vertex1 IVertex
vertex2 IVertex
Résultat ICollection

GetDegree() protected méthode

protected GetDegree ( Vertex oVertex ) : Int32
oVertex Vertex
Résultat System.Int32

GetEnumerator() public méthode

public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetIncomingOrOutgoingEdges() protected méthode

protected GetIncomingOrOutgoingEdges ( Vertex oVertex, System.Boolean bIncludeIncoming, System.Boolean bIncludeOutgoing ) : ICollection
oVertex Vertex
bIncludeIncoming System.Boolean
bIncludeOutgoing System.Boolean
Résultat ICollection

GetPredecessorOrSuccessorVertices() protected méthode

protected GetPredecessorOrSuccessorVertices ( Vertex oVertex, System.Boolean bIncludePredecessor, System.Boolean bIncludeSuccessor ) : ICollection
oVertex Vertex
bIncludePredecessor System.Boolean
bIncludeSuccessor System.Boolean
Résultat ICollection

IVertexToVertex() protected méthode

protected IVertexToVertex ( IVertex oVertex, String sMethodOrPropertyName ) : Vertex
oVertex IVertex
sMethodOrPropertyName String
Résultat Vertex

OnEdgeAdded() protected méthode

protected OnEdgeAdded ( IEdge oEdge ) : void
oEdge IEdge
Résultat void

OnEdgeRemoved() protected méthode

protected OnEdgeRemoved ( IEdge oEdge, System.Boolean bFireEdgeRemoved ) : void
oEdge IEdge
bFireEdgeRemoved System.Boolean
Résultat void

Remove() public méthode

public Remove ( IEdge edge ) : System.Boolean
edge IEdge
Résultat System.Boolean

Remove() public méthode

public Remove ( Int32 id ) : System.Boolean
id System.Int32
Résultat System.Boolean

Remove() public méthode

public Remove ( String name ) : System.Boolean
name String
Résultat System.Boolean

RemoveAllFromGroup() protected méthode

protected RemoveAllFromGroup ( Vertex oVertex ) : void
oVertex Vertex
Résultat void

RemoveDuplicates() public méthode

public RemoveDuplicates ( ) : void
Résultat void

RemoveFromGroup() protected méthode

protected RemoveFromGroup ( IEdge oEdge, Vertex oVertex ) : System.Boolean
oEdge IEdge
oVertex Vertex
Résultat System.Boolean

ToString() public méthode

public ToString ( ) : String
Résultat String

Property Details

m_iEdges protected_oe property

protected Int32,System m_iEdges
Résultat System.Int32

m_oLinkedList protected_oe property

protected LinkedList m_oLinkedList
Résultat LinkedList

m_oParentGraph protected_oe property

protected IGraph m_oParentGraph
Résultat IGraph