Skip to main content

Home > @jsplumbtoolkit/core > 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

ParameterTypeDescription
sourcestring | PortSource Port.
targetstring | PortTarget Port.
costnumberCost to set. If you leave this as null, the default will be used.
directedbooleanWhether or not the internal Edge is directed.

Returns:

Edge