Previous topic

medpy.graphcut.graph.Graph.inconsistent

Next topic

medpy.graphcut.graph.Graph.set_nweights

This Page

medpy.graphcut.graph.Graph.set_nodes

Graph.set_nodes(nodes)[source]

Set the number of graph nodes (starting from node-id = 1), excluding sink and source.

Parameters:

nodes : int

Number of nodes