Search
Edge Methods
 


 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