{ } Raw JSON

bundles / skimage 0.26.1rc0.dev0+git20260530.b607368ff / skimage / graph / _mcp / MCP_Connect / create_connection

cython_function_or_method

skimage.graph._mcp:MCP_Connect.create_connection

Signature

def   create_connection ( self id1 id2 tb1 tb2 cost1 cost2 )

Summary

create_connection id1, id2, pos1, pos2, cost1, cost2)

Extended Summary

Overload this method to keep track of the connections that are found during MCP processing. Note that a connection with the same ids can be found multiple times (but with different positions and costs).

At the time that this method is called, both points are "frozen" and will not be visited again by the MCP algorithm.

Parameters

id1 : int

The seed point id where the first neighbor originated from.

id2 : int

The seed point id where the second neighbor originated from.

pos1 : tuple

The index of of the first neighbor in the connection.

pos2 : tuple

The index of of the second neighbor in the connection.

cost1 : float

The cumulative cost at pos1.

cost2 : float

The cumulative costs at pos2.

Aliases

  • skimage.graph.MCP_Connect.create_connection