#NEWLINE# def create_empty_copy( G , with_data = True ) : #NEWLINE# #INDENT# 'Return a copy of the graph G with all of the edges removed.\n\n    Parameters\n    ----------\n    G : graph\n       A NetworkX graph\n\n    with_data :  bool (default=True)\n       Propagate Graph and Nodes data to the new graph.\n\n    See Also\n    -----\n    empty_graph\n\n    ' #NEWLINE# H = G . __class__ ( ) #NEWLINE# H . add_nodes_from ( G . nodes ( data = with_data ) ) #NEWLINE# if with_data : #NEWLINE# #INDENT# H . graph . update ( G . graph ) #NEWLINE# #UNINDENT# return H