summaryrefslogtreecommitdiff
path: root/networkx/utils
diff options
context:
space:
mode:
authorRoss Barnowski <rossbar@berkeley.edu>2022-03-25 12:10:10 -0700
committerGitHub <noreply@github.com>2022-03-25 12:10:10 -0700
commitcc1db275efc709cb964ce88abbfa877798d58c10 (patch)
tree3d54236598cd075c1aeb7b4b3851da2ce35ab2b3 /networkx/utils
parent93137c5427703ae1e60b53cea88bcbba216ae73f (diff)
downloadnetworkx-cc1db275efc709cb964ce88abbfa877798d58c10.tar.gz
Minor improvements from general code readthrough (#5414)
* Add deprecated directive to reversed docstring. * Add missing dep directives to shpfiles. * Remove defn of INF sentinel. * typo. * str -> comment in forloop. * STY: appropriate casing for var name.
Diffstat (limited to 'networkx/utils')
-rw-r--r--networkx/utils/contextmanagers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/networkx/utils/contextmanagers.py b/networkx/utils/contextmanagers.py
index 870fecb8..d712e346 100644
--- a/networkx/utils/contextmanagers.py
+++ b/networkx/utils/contextmanagers.py
@@ -8,6 +8,11 @@ __all__ = ["reversed"]
def reversed(G):
"""A context manager for temporarily reversing a directed graph in place.
+ .. deprecated:: 2.6
+
+ This context manager is deprecated and will be removed in 3.0.
+ Use ``G.reverse(copy=False) if G.is_directed() else G`` instead.
+
This is a no-op for undirected graphs.
Parameters