rustworkx.PyGraph.copy#
- PyGraph.copy()#
Return a shallow copy of the graph
All node and edge weight/data payloads in the copy will have a shared reference to the original graph. :returns: A shallow copy of the graph :rtype: PyGraph
Return a shallow copy of the graph
All node and edge weight/data payloads in the copy will have a shared reference to the original graph. :returns: A shallow copy of the graph :rtype: PyGraph