dynetx.classes.function.create_empty_copy

dynetx.classes.function.create_empty_copy(G, with_data=True)

Return a copy of the graph G with all of the edges removed. :param G: A DyNetx graph :type G: graph :param with_data: Include data. :type with_data: bool (default=True)

Notes

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