class_docstr: Unit tests for the :func:`~networkx.cut_size` function.
class_docstr_tok: ["Unit","tests","for","the",":","func",":","`","~networkx.cut_size","`","function","."]
docstr: Tests that each directed edge is counted once in the cut.
docstr_tok: ["Tests","that","each","directed","edge","is","counted","once","in","the","cut","."]
code: def test_directed(self):
      """Tests that each directed edge is counted once in the cut."""
      G = nx.barbell_graph(3, 0).to_directed()
      S = {0, 1, 2}
      T = {3, 4, 5}
      assert nx.cut_size(G, S, T) == 2
      assert nx.cut_size(G, T, S) == 2
  
imports: import networkx
label_desc: Use image node_id 3 for calling the TestCutSize obj's underlying member method code with example usage: obj.test_directed() without return types