docstr: Verifies that dedensify produced the correct number of compressor nodes
  in a directed graph
docstr_tok: ["Verifies","that","dedensify","produced","the","correct","number","of","compressor","nodes","in","a","directed","graph"]
code: def test_dedensify_edge_count(self):
      """
      Verifies that dedensify produced the correct number of compressor nodes
      in a directed graph
      """
      G = self.build_original_graph()
      original_edge_count = len(G.edges())
      c_G, c_nodes = nx.dedensify(G, threshold=2)
      compressed_edge_count = len(c_G.edges())
      assert compressed_edge_count <= original_edge_count
      compressed_G = self.build_compressed_graph()
      assert compressed_edge_count == len(compressed_G.edges())
  
imports: import pytest
  import networkx
label_desc: Use image node_id 7 for calling the TestDirectedDedensification obj's underlying member method code with example usage: obj.test_dedensify_edge_count() without return types