Search
Vertex Members
Constructors Fields Methods
 


Represents a vertex in a graph.

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

 Public Constructors

  Name Description

Vertex

Initializes a new instance of the Vertex class.

 Public Fields

  Name Description

edges

A list containing all edges incident with this vertex.

inEdges

A list containing all incoming edges.

outEdges

A list containing all outgoing edges.

weight

The relative weight of this vertex.

 Public Methods

  Name Description

adjacentTo

Checks if there is an edge connecting this vertex with the specified vertex.

degree

Returns the number of incident edges.

getCommonEdge

Finds the edge connecting the current vertex with the specified vertex.

getNeighbors

Returns an array containing all vertices adjacent to the current vertex.

incidentWith

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

 See Also