Previous topic

medpy.graphcut.graph.Graph.set_nodes

Next topic

medpy.graphcut.graph.Graph.set_sink_nodes

This Page

medpy.graphcut.graph.Graph.set_nweights

Graph.set_nweights(nweights)[source]

Sets all n-weights.

Parameters:

nweights : dict

A dictionary with (node-id, node-id) tuples as keys and (weight-a-to-b, weight-b-to-a) as values.