{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / graph / _mcp / MCP_Flexible / travel_cost

cython_function_or_method

skimage.graph._mcp:MCP_Flexible.travel_cost

Signature

def   travel_cost ( self old_cost new_cost offset_length )

Summary

travel_cost(old_cost, new_cost, offset_length) This method calculates the travel cost for going from the current node to the next. The default implementation returns new_cost. Overload this method to adapt the behaviour of the algorithm.

Aliases

  • skimage.graph.MCP_Flexible.travel_cost