Search
Edge Members
Constructors Fields Methods
 


Represents an edge connecting two vertices in a graph.

The following tables list the members exposed by the Edge type.

 Public Constructors

  Name Description

Edge

Initializes a new instance of the Edge class.

 Public Fields

  Name Description

destination

The destination vertex.

origin

The origin vertex.

 Public Methods

  Name Description

adjacentTo

Checks if the current edge is adjacent to the specified edge, that is, they have common vertex.

changeDestination

Changes the destination of the current edge to the specified vertex.

changeOrigin

Changes the origin of the current edge to the specified vertex.

createReverseEdge

Creates a new edge similar to the current edge but with reversed direction.

getCommonVertex

Returns a common vertex for the current edge and the specified edge.

getEnds

Returns an array containing the origin and destination vertices of this edge.

getOtherEnd

Returns the vertex connected by this edge that is not the specified vertex.

incidentWith

Checks if the current edge is incident with the specified vertex.

joins

Checks if the current edge connects the specified vertices.

reverse

Reverses this edge.

 See Also