Skip to main content

Home > @jsplumbtoolkit/core > Edge > setCost

Edge.setCost() method#

Sets the cost for this edge.

Signature:

setCost(c: number): void;

Parameters#

ParameterTypeDescription
cnumberEdge cost.

Returns:

void