Legato.Graph.Vertex

Implements a vertex of the directed graph.

Summary
Legato.Graph.VertexImplements a vertex of the directed graph.
Properties
name{String} Name of the vertex.
incoming{Legato.Util.HashSet} Set of incoming edges.
outgoing{Legato.Util.HashSet} Set of outgoing edges.
Functions
initializeConstructs the vertex.
hasIncomingEdges{Boolean} true if vertex has incoming edges, false if not.

Properties

name

{String} Name of the vertex.

incoming

{Legato.Util.HashSet} Set of incoming edges.

outgoing

{Legato.Util.HashSet} Set of outgoing edges.

Functions

initialize

initialize : function(name)

Constructs the vertex.

Parameters

name{String} name of the vertex.

hasIncomingEdges

hasIncomingEdges : function()

Returns

{Boolean} true if vertex has incoming edges, false if not.

Implements a map-backed set of strings.
initialize : function(name)
Constructs the vertex.
hasIncomingEdges : function()
{Boolean} true if vertex has incoming edges, false if not.