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(self):
      G = self.K3
      G.graph["name"] = "K3"
      G.clear()
      assert list(G.nodes) == []
      assert G.succ == {}
      assert G.pred == {}
      assert G.graph == {}
  
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 7 for calling the TestDiGraph obj's underlying member method code with example usage: obj.test_clear() without return types