Skip to main content

Home > @jsplumbtoolkit/core > Edge

Edge class

Signature:

export declare class Edge extends Base 

Extends: Base

Constructors

ConstructorModifiersDescription
(constructor)(params)Constructs a new instance of the Edge class

Properties

PropertyModifiersTypeDescription
connectionIdstring
costnumberEdge cost
directedboolean
geometryany
idstring
objectTypestring
objectTypestaticstring
sourceVertexSource of the Edge.
targetVertexTarget of the Edge.

Methods

MethodModifiersDescription
getCost()Gets the cost for this edge. Defaults to 1.
getFullId()
getId()Gets the id for this Edge.
inspect()Returns a string representation of the Edge.
isDirected()Gets whether or not the Edge is directed.
setCost(c)Sets the cost for this edge.
setDirected(directed)Sets whether or not the Edge is directed.
setId(id)