Skip to content
Select language:English

Way-Fi 1.6.0

fun changeCost(newCost: Float, idNodeFrom: Int, idNodeTo: Int, mask: Int = -1): Float

Change the cost of an arc between two nodes that has the specified mask. This method is useful in case the graph allows for duplicated arcs with different mask.

Return

The old cost of the arc.

Parameters

newCost

The new cost of the arc.

idNodeFrom

the id of the from node.

idNodeTo

The id of the to node.

mask

The mask of the arc.


fun changeCost(newCost: Float, layerFrom: String, oidNodeFrom: Int, layerTo: String, oidNodeTo: Int, mask: Int = -1): Float

Change the cost of an arc between two nodes that has the specified mask. This method is useful in case the graph allows for duplicated arcs with different mask.

Return

The old cost of the arc.

Parameters

newCost

The new cost of the arc.

layerFrom

The name of the layer of the from node.

oidNodeFrom

the original id of the from node.

layerTo

The name of the layer of the from node.

oidNodeTo

The original id of the to node.

mask

The mask of the arc.


fun changeCost(newCost: Float, idLayerFrom: Int, oidNodeFrom: Int, idLayerTo: Int, oidNodeTo: Int, mask: Int = -1): Float

Change the cost of an arc between two nodes that has the specified mask. This method is useful in case the graph allows for duplicated arcs with different mask.

Return

The old cost of the arc.

Parameters

newCost

The new cost of the arc.

idLayerFrom

The id of the layer of the from node.

oidNodeFrom

the original id of the from node.

idLayerTo

The id of the layer of the to node.

oidNodeTo

The original id of the to node.


fun changeCost(newCost: Float, unlNodeFrom: String, unlNodeTo: String, mask: Int = -1): Float

Change the cost of an arc between two nodes identified by UNL.

Return

The old cost of the arc.

Parameters

newCost

The new cost of the arc.

unlNodeFrom

The UNL of the from node.

unlNodeTo

The UNL of the to node.

mask

The mask of the arc.