From debfe114314f0829dbf3d0d9b489172c8c60bed0 Mon Sep 17 00:00:00 2001 From: Justin Cai Date: Thu, 20 May 2021 02:30:58 -0600 Subject: Fix to_undirected doc typo (#4821) --- networkx/classes/multidigraph.py | 2 +- networkx/classes/multigraph.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/networkx/classes/multidigraph.py b/networkx/classes/multidigraph.py index 13f23cb2..b1594385 100644 --- a/networkx/classes/multidigraph.py +++ b/networkx/classes/multidigraph.py @@ -796,7 +796,7 @@ class MultiDiGraph(MultiGraph, DiGraph): graph attributes which attempts to completely copy all of the data and references. - This is in contrast to the similar D=MultiiGraph(G) which + This is in contrast to the similar D=MultiDiGraph(G) which returns a shallow copy of the data. See the Python copy module for more information on shallow diff --git a/networkx/classes/multigraph.py b/networkx/classes/multigraph.py index 1779a616..fc35e699 100644 --- a/networkx/classes/multigraph.py +++ b/networkx/classes/multigraph.py @@ -1043,7 +1043,7 @@ class MultiGraph(Graph): See the Python copy module for more information on shallow and deep copies, https://docs.python.org/3/library/copy.html. - Warning: If you have subclassed MultiiGraph to use dict-like + Warning: If you have subclassed MultiGraph to use dict-like objects in the data structure, those changes do not transfer to the MultiGraph created by this method. -- cgit v1.2.1