NetworkX

This documentation is for version 1.4.dev_20110115230102, which is not released yet.

Previous topic

networkx.info

Next topic

networkx.is_directed

networkx.create_empty_copy

create_empty_copy(G, with_nodes=True)

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

Parameters :

G : graph

A NetworkX graph

with_nodes : bool (default=True)

Include nodes.

Notes

Graph, node, and edge data is not propagated to the new graph.