class_docstr: Unit tests for the :func:`~networkx.normalized_cut_size` function.
class_docstr_tok: ["Unit","tests","for","the",":","func",":","`","~networkx.normalized_cut_size","`","function","."]
code: def test_graph(self):
      G = nx.path_graph(4)
      S = {1, 2}
      T = set(G) - S
      size = nx.normalized_cut_size(G, S, T)
      # The cut looks like this: o-{-o--o-}-o
      expected = 2 * ((1 / 4) + (1 / 2))
      assert expected == size
      # Test with no input T
      assert expected == nx.normalized_cut_size(G, S)
  
imports: import networkx
label_desc: Use image node_id 1 for calling the TestNormalizedCutSize obj's underlying member method code with example usage: obj.test_graph() without return types