Note

This is the documentation for the current state of the development branch of rustworkx. The documentation or APIs here can change prior to being released.

rustworkx.PyDiGraph.copy#

PyDiGraph.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.