class_docstr: Executes the complete pipeline of the graph cut algorithm, checking the results.
class_docstr_tok: ["Executes","the","complete","pipeline","of","the","graph","cut","algorithm",",","checking","the","results","."]
docstr: Returns a dict holding the edge to weight mappings.
docstr_tok: ["Returns","a","dict","holding","the","edge","to","weight","mappings","."]
code: def __get_mapping():
      "Returns a dict holding the edge to weight mappings."
      mapping = {}
      mapping[(1, 2)] = 5
      mapping[(1, 4)] = 7
      mapping[(1, 5)] = 11
      mapping[(2, 3)] = 6
      mapping[(2, 4)] = 4
      mapping[(3, 4)] = 9
      mapping[(3, 6)] = 1  # edge that has to be removed later
      mapping[(3, 8)] = 2
      mapping[(3, 10)] = 6
      mapping[(4, 5)] = 3
      mapping[(5, 6)] = 8
      mapping[(6, 7)] = 5
      mapping[(6, 9)] = 3
      mapping[(7, 8)] = 3
      mapping[(7, 9)] = 7
      mapping[(7, 10)] = 1  # edge that has to be removed later
      mapping[(8, 10)] = 8
      mapping[(9, 10)] = 5
  
      return mapping
  
file_path: medpy/tests/graphcut_/cut.py
imports: import unittest
  from medpy.graphcut import graph_from_labels, GraphDouble, Graph, graph_from_voxels
  from medpy.graphcut.energy_voxel import boundary_difference_linear
  from medpy import filter
  import scipy
label_desc: Use image node_id 4 for calling the TestCut obj's underlying member method code with example usage: obj.__get_mapping() and returns: mapping