Class: GraphEdge

algo.core. GraphEdge

new GraphEdge(id, source, target)

edges connect two vertices or a single vertex
Parameters:
Name Type Description
id number
source algo.core.GraphVertex
target algo.core.GraphVertex
Source:

Methods

<static> isSelfConnected() → {boolean}

Source:
Returns:
returns true if the edge is connected to itself
Type
boolean

setSource(edge, newSource)

change source of existing edge
Parameters:
Name Type Description
edge
newSource
Source:

setTarget(edge, newTarget)

change target of existing edge
Parameters:
Name Type Description
edge
newTarget
Source: