Home > @jsplumbtoolkit/browser-ui > Node > setInternalEdge
Node.setInternalEdge() method
Sets the cost and directedness of some internal Edge.
Signature:
setInternalEdge(source: string | Port, target: string | Port, cost?: number, directed?: boolean): Edge;
Parameters
Parameter | Type | Description |
---|---|---|
source | string | Port | Source Port. |
target | string | Port | Target Port. |
cost | number | Cost to set. If you leave this as null, the default will be used. |
directed | boolean | Whether or not the internal Edge is directed. |
Returns: