code: def test(graphtype):
      g = graphtype(4, 4)
      g.add_node(4)
  
      g.add_tweights(0, 99, 0)
      g.add_tweights(3, 0, 99)
  
      g.add_edge(0, 1, 1, 1)
      g.add_edge(0, 2, 1, 1)
      g.add_edge(1, 3, 2, 2)
      g.add_edge(2, 3, 2, 2)
      print("Flow: {}".format(g.maxflow()))
      print_cut(g, 4)
  
      g.add_edge(0, 1, 2, 2)
      g.add_edge(0, 2, 2, 2)
      print("Flow: {}".format(g.maxflow()))
      print_cut(g, 4)
  
file_path: medpy/lib/maxflow/src/sum_edge_test.py
imports: from maxflow import GraphDouble, GraphFloat, GraphInt
  import random
label_desc: Use image node_id 2 for calling a global function with example usage: test(graphtype) without return types