code: def __print_nweights(self, graph):
      n = graph.get_node_num()
      for i in range(n):
          for j in range(i, n):
              if not i == j:
                  print((i, j, graph.get_edge(i, j)))
  
imports: import unittest
  import numpy
  from numpy.testing import assert_array_equal
  from medpy.graphcut import graph_from_voxels
  from medpy.graphcut.energy_voxel import boundary_difference_linear, boundary_difference_exponential, boundary_difference_division, boundary_difference_power, boundary_maximum_linear, boundary_maximum_exponential, boundary_maximum_division, boundary_maximum_power, regional_probability_map
label_desc: Use image node_id 17 for calling the TestEnergyVoxel obj's underlying member method code with example usage: obj.__print_nweights(graph) without return types