C# 클래스 Smrf.NodeXL.Core.Edge

Represents an edge.
An edge is a connection between two vertices in the same graph. An edge can be directed or undirected. A directed edge has a front and a back.

An edge always connects two vertices. Although an edge can be created before it is added to a graph, it can't be created without specifying the vertices it connects. An edge can be added only to the graph that contains the edge's vertices.

An Edge can be created via its constructor and then added to a graph via Graph.Edges.EdgeCollection.Add(IEdge), or created and added to a graph at the same time via Graph.Edges..

An edge is immutable, meaning that its vertices can't be removed. An edge can be removed from a graph and disposed of, but once the edge is removed, the edge is unusable. Attempting to access the edge's properties or methods will lead to unpredictable results.

상속: GraphVertexEdgeBase, IEdge
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
m_bIsDirected System.Boolean
m_oVertex1 IVertex
m_oVertex2 IVertex

Private Properties

프로퍼티 타입 설명
Edge System

공개 메소드들

메소드 설명
AssertValid ( ) : void
Clone ( System.Boolean copyMetadataValues, System.Boolean copyTag ) : IEdge
Clone ( System.Boolean copyMetadataValues, System.Boolean copyTag, IVertex vertex1, IVertex vertex2, System.Boolean isDirected ) : IEdge
Edge ( IVertex vertex1, IVertex vertex2, System.Boolean isDirected ) : System

Initializes a new instance of the Edge class.

GetAdjacentVertex ( IVertex vertex ) : IVertex
IsAntiparallelTo ( IEdge otherEdge ) : System.Boolean
IsParallelTo ( IEdge otherEdge ) : System.Boolean

보호된 메소드들

메소드 설명
CheckVertexArgument ( IVertex oVertex, String sArgumentName ) : void
EdgeToVertices ( IEdge oEdge, String sClassName, String sMethodOrPropertyName, Vertex &oVertex1, Vertex &oVertex2 ) : void
IEdgeToEdge ( IEdge oEdge, String sClassName, String sMethodOrPropertyName ) : Edge

비공개 메소드들

메소드 설명
Edge ( ) : System

메소드 상세

AssertValid() 공개 메소드

public AssertValid ( ) : void
리턴 void

CheckVertexArgument() 보호된 메소드

protected CheckVertexArgument ( IVertex oVertex, String sArgumentName ) : void
oVertex IVertex
sArgumentName String
리턴 void

Clone() 공개 메소드

public Clone ( System.Boolean copyMetadataValues, System.Boolean copyTag ) : IEdge
copyMetadataValues System.Boolean
copyTag System.Boolean
리턴 IEdge

Clone() 공개 메소드

public Clone ( System.Boolean copyMetadataValues, System.Boolean copyTag, IVertex vertex1, IVertex vertex2, System.Boolean isDirected ) : IEdge
copyMetadataValues System.Boolean
copyTag System.Boolean
vertex1 IVertex
vertex2 IVertex
isDirected System.Boolean
리턴 IEdge

Edge() 공개 메소드

Initializes a new instance of the Edge class.
public Edge ( IVertex vertex1, IVertex vertex2, System.Boolean isDirected ) : System
vertex1 IVertex /// The edge's first vertex. The vertex must have already been added to /// the graph to which the new edge will be added. ///
vertex2 IVertex /// The edge's second vertex. The vertex must have already been added to /// the graph to which the new edge will be added. ///
isDirected System.Boolean /// If true, is the edge's back vertex and /// is the edge's front vertex. If false, the /// edge is undirected. ///
리턴 System

EdgeToVertices() 보호된 정적인 메소드

protected static EdgeToVertices ( IEdge oEdge, String sClassName, String sMethodOrPropertyName, Vertex &oVertex1, Vertex &oVertex2 ) : void
oEdge IEdge
sClassName String
sMethodOrPropertyName String
oVertex1 Vertex
oVertex2 Vertex
리턴 void

GetAdjacentVertex() 공개 메소드

public GetAdjacentVertex ( IVertex vertex ) : IVertex
vertex IVertex
리턴 IVertex

IEdgeToEdge() 보호된 정적인 메소드

protected static IEdgeToEdge ( IEdge oEdge, String sClassName, String sMethodOrPropertyName ) : Edge
oEdge IEdge
sClassName String
sMethodOrPropertyName String
리턴 Edge

IsAntiparallelTo() 공개 메소드

public IsAntiparallelTo ( IEdge otherEdge ) : System.Boolean
otherEdge IEdge
리턴 System.Boolean

IsParallelTo() 공개 메소드

public IsParallelTo ( IEdge otherEdge ) : System.Boolean
otherEdge IEdge
리턴 System.Boolean

프로퍼티 상세

m_bIsDirected 보호되어 있는 프로퍼티

protected Boolean,System m_bIsDirected
리턴 System.Boolean

m_oVertex1 보호되어 있는 프로퍼티

protected IVertex m_oVertex1
리턴 IVertex

m_oVertex2 보호되어 있는 프로퍼티

protected IVertex m_oVertex2
리턴 IVertex