medpy.graphcut
medpy.graphcut.graph.Graph.get_source_nodes
medpy.graphcut.graph.Graph.inconsistent
Graph.
get_tweights
Get the tweights.
tweights : dict
All t-weights (terminal-node weights) as {node_id: (weight-source-node, weight-node-sink), …} dict.
Notes
Returns only the t-weights that have been set so far. For nodes with unset t-weight, no entry is returned.