rustworkx.PyGraph.copy#

PyGraph.copy()#

返回图的浅拷贝

所有节点和边权重/数据负载在副本中都将拥有对原始图的共享引用。 :returns: 图的浅拷贝 :rtype: PyGraph