Sets the value added to the total route cost when a link passes through the buffer area around a node.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public void setNodeVicinityCost ( |
An integer value added to the cost of a route when the link passes near a node.
This is a penalty value added to the total cost of an evaluated link route if it passes too close to a node. The routing algorithm aims to find paths that have a minimal cost, so assigning a greater value through setNodeVicinityCost makes links avoid passing close to nodes. The size of the buffer area around nodes in which passing links get a penalty cost is specified by means of setNodeVicinitySize.