Search
Path.getWeight Method
See Also
 





Calculates the weight of this Path by accumulating the Weight of all participating diagram elements.

Namespace: MindFusion.Diagramming
Package: PathFinder.js

 Syntax

JavaScript  Copy Code

function getWeight ([incNodes, [incLinks]])

 Parameters

incNodes
Optional.

A boolean value specifying whether the Weight of DiagramNode elements should be considered.

incLinks
Optional.

A boolean value specifying whether the Weight of DiagramLink elements should be considered.

 Return Value

A number that represents the total weight of the elements in this Path according to the incNodes and incLinks parameters.

 See Also