class_docstr: Tests specific to dict-of-dict-of-dict digraph data structure
class_docstr_tok: ["Tests","specific","to","dict-of-dict-of-dict","digraph","data","structure"]
code: def test_clear_edges(self):
      G = self.K3
      G.graph["name"] = "K3"
      nodes = list(G.nodes)
      G.clear_edges()
      assert list(G.nodes) == nodes
      expected = {0: {}, 1: {}, 2: {}}
      assert G.succ == expected
      assert G.pred == expected
      assert list(G.edges) == []
      assert G.graph["name"] == "K3"
  
imports: import pytest
  import networkx
  from networkx.utils import nodes_equal
  from .test_graph import BaseAttrGraphTester, BaseGraphTester
  from .test_graph import TestEdgeSubgraph
  from .test_graph import TestGraph
label_desc: Use image node_id 8 for calling the TestDiGraph obj's underlying member method code with example usage: obj.test_clear_edges() without return types