Constructors
constructor
new Graph( opt?: Object ) : Graph
Methods
edge
edge( fromName: string , toName: string ) : E
edge( edgeObject: EdgeObject ) : E
Parameters
fromName: string
toName: string
Returns E
Parameters
Returns E
hasEdge
hasEdge( fromName: string , toName: string ) : boolean
Parameters
fromName: string
toName: string
Returns boolean
hasNode
hasNode( name: string ) : boolean
Parameters
Returns boolean
inEdges
inEdges( name: string ) : E []
neighbors
neighbors( name: string ) : string []
Parameters
Returns string []
outEdges
outEdges( name: string ) : E []
predecessors
predecessors( name: string ) : string []
Parameters
Returns string []
removeEdge
removeEdge( v: string , w: string ) : void
removeNode
removeNode( name: string ) : void
removeNode( name: string ) : Graph < N , E >
Parameters
Returns void
Parameters
Returns Graph < N , E >
setEdge
setEdge( fromName: string , toName: string , value?: E ) : void
Parameters
fromName: string
toName: string
Optional value: E
Returns void
setNode
setNode( name: string , value?: N ) : void
Parameters
name: string
Optional value: N
Returns void
setParent
setParent( name: string , parentName: string ) : void
Parameters
name: string
parentName: string
Returns void
successors
successors( name: string ) : string []
Parameters
Returns string []
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method
Remove the node with the id v in the graph or do nothing if the node is not in the graph. If the node was removed this function also removes any incident edges. Returns the graph, allowing this to be chained with other functions. Takes O(|E|) time.