Class: GraphVertex

Kekule. GraphVertex

new GraphVertex()

A class to represent a abstract graph vertex.
Properties:
Name Type Description
edges Array Connected edges to this vertex.
Source:

Extends

  • Hash

Methods

getEdgeCount() → {Int}

Returns count of connected edges (degree).
Source:
Returns:
Type
Int

getEdgeTo(neighborVertex) → {Kekule.GraphEdge}

Returns edge that connects neighborVertex and this vertex.
Parameters:
Name Type Description
neighborVertex Kekule.GraphVertex
Source:
Returns:
Type
Kekule.GraphEdge

getNeighborOnEdge(edge) → {Kekule.GraphVertex}

Returns neighboring vertex connected by edge.
Parameters:
Name Type Description
edge Kekule.GraphEdge
Source:
Returns:
Type
Kekule.GraphVertex

getNeighbors() → {Array}

Return an array of neighboring vertexes.
Source:
Returns:
Type
Array

Kekule. GraphVertex

new GraphVertex()

Source:

Methods

getEdgeCount() → {Int}

Returns count of connected edges (degree).
Source:
Returns:
Type
Int

getEdgeTo(neighborVertex) → {Kekule.GraphEdge}

Returns edge that connects neighborVertex and this vertex.
Parameters:
Name Type Description
neighborVertex Kekule.GraphVertex
Source:
Returns:
Type
Kekule.GraphEdge

getNeighborOnEdge(edge) → {Kekule.GraphVertex}

Returns neighboring vertex connected by edge.
Parameters:
Name Type Description
edge Kekule.GraphEdge
Source:
Returns:
Type
Kekule.GraphVertex

getNeighbors() → {Array}

Return an array of neighboring vertexes.
Source:
Returns:
Type
Array