Interface IAbstractGraph<V, E>
Methods
addEdge
- addEdge(src, dest, weight, val): boolean
-
Returns boolean
addVertex
- addVertex(id, val?): boolean
-
Returns boolean
degreeOf
- degreeOf(vertexOrId): number
-
Returns number
edgeSet
- edgeSet(): E[]
-
Returns E[]
edgesOf
- edgesOf(vertexOrId): E[]
-
Returns E[]
getEdge
- getEdge(srcOrId, destOrId): null | E
-
Returns null | E
getMinPathBetween
- getMinPathBetween(v1, v2, isWeight?): null | V[]
-
Parameters
-
-
-
Optional
isWeight: boolean
Returns null | V[]
getNeighbors
- getNeighbors(vertexOrId): V[]
-
Returns V[]
hasEdge
- hasEdge(src, dest): boolean
-
Returns boolean
hasVertex
- hasVertex(vertexOrId): boolean
-
Returns boolean
removeAllVertices
- removeAllVertices(vertices): boolean
-
Returns boolean
removeEdge
- removeEdge(edge): null | E
-
Returns null | E
removeVertex
- removeVertex(vertexOrId): boolean
-
Returns boolean
setEdgeWeight
- setEdgeWeight(srcOrId, destOrId, weight): boolean
-
Returns boolean