API Docs for: 0.0.1
Show:

Graph.Edge Class

Defined in: source-yuidoc.js:75

Constructor for edge of a Graph

Constructor

Graph.Edge

(
  • tail
  • head
)

Defined in source-yuidoc.js:75

Parameters:

Item Index

Methods

addEdge

() Graph.Edge

Method for adding new Graph.Edge

Returns:

Graph.Edge:

An instance of a Graph.Edge

addVertex

(
  • name
  • value
)
Graph.Vertex

Defined in source-yuidoc.js:91

Add a new Graph.Vertex or updates the value of an existing one

Parameters:

  • name String

    Name of the new vertex

  • value Number

    Value of the new vertex

Returns:

Graph.Vertex:

New or updated Graph.Vertex

Example:

var newVertex = Graph.addVertex("vertex1", 20);

exports

()

Exports the Graph