docstr: Verifies that dedensify produced the correct edges to/from compressor
  nodes in a directed graph
docstr_tok: ["Verifies","that","dedensify","produced","the","correct","edges","to\/from","compressor","nodes","in","a","directed","graph"]
code: def test_dedensify_edges(self):
      """
      Verifies that dedensify produced the correct edges to/from compressor
      nodes in a directed graph
      """
      G = self.build_original_graph()
      compressed_G = self.build_compressed_graph()
      compressed_graph, c_nodes = nx.dedensify(G, threshold=2)
      for s, t in compressed_graph.edges():
          o_s = "".join(sorted(s))
          o_t = "".join(sorted(t))
          compressed_graph_exists = compressed_graph.has_edge(s, t)
          verified_compressed_exists = compressed_G.has_edge(o_s, o_t)
          assert compressed_graph_exists == verified_compressed_exists
      assert len(c_nodes) == len(self.c_nodes)
  
imports: import pytest
  import networkx
label_desc: Use image node_id 6 for calling the TestDirectedDedensification obj's underlying member method code with example usage: obj.test_dedensify_edges() without return types