Previous topic

medpy.graphcut.graph.Graph.get_edges

Next topic

medpy.graphcut.graph.Graph.get_nodes

This Page

medpy.graphcut.graph.Graph.get_node_count

Graph.get_node_count()[source]

Get the number of nodes.

Returns:

node_count : int

The number of nodes (excluding sink and source).