new Graph()
A Graph object with the basic properties
 Source:
 sourcejsdoc.js
Properties:
Name  Type  Description 

vertices 
object  The vertices of the graph 
edges 
array  The edges of the graph 
length 
number  Length of the graph 
Classes
Members

edges

Array of edges of the Graph
 Source:
 sourcejsdoc.js

length

Length of the Graph, initially set to 0
 Source:
 sourcejsdoc.js

vertices

Object for holding vertices of the Graph
 Source:
 sourcejsdoc.js
Methods

addEdge() → {Graph.Edge}

Method for adding new Graph.Edge
 Source:
 sourcejsdoc.js
Returns:
An instance of a Graph.Edge Type
 Graph.Edge

addVertex(name, value) → {Graph.Vertex}

Add a new Graph.Vertex or updates the value of an existing one
Parameters:
Name Type Description name
string Name of the new vertex value
number Value of the new vertex  Source:
 sourcejsdoc.js
Returns:
New or updated Graph.Vertex Type
 Graph.Vertex
Example
var newVertex = Graph.addVertex("vertex1", 20);