Home > @jsplumbtoolkit/core > Edge
Edge class
Signature:
export declare class Edge extends Base
Extends: Base
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(params) | Constructs a new instance of the Edge class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
connectionId | string | ||
cost | number | Edge cost | |
directed | boolean | ||
geometry | any | ||
id | string | ||
objectType | string | ||
objectType | static | string | |
source | Vertex | Source of the Edge. | |
target | Vertex | Target of the Edge. |
Methods
Method | Modifiers | Description |
---|---|---|
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) |