code: def create_empty_copy(G, with_data=True):
      
      H = G.__class__()
      H.add_nodes_from(G.nodes(data=with_data))
      if with_data:
          H.graph.update(G.graph)
      return H
docs: Return a copy of the graph G with all of the edges removed.
          Parameters
          ----------
  
          G : graph
             A DyNetx graph
  
          with_data :  bool (default=True)
             Include data.
  
          Notes
          -----
          Graph and edge data is not propagated to the new graph.