create_empty_copy#

create_empty_copy(G, with_data=True)[source]#

Returns a copy of the graph G with all of the edges removed.

Parameters:
Ggraph

A NetworkX graph

with_databool (default=True)

Propagate Graph and Nodes data to the new graph.

See also

empty_graph