diff options
| author | Jarrod Millman <jarrod.millman@gmail.com> | 2022-02-19 08:47:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-19 20:47:18 +0400 |
| commit | 2db9682a176e2ae4192253aac1687f5dc001ea9a (patch) | |
| tree | d6abae91068534c9a2f4f9a236d213624d32aa6d /networkx/classes | |
| parent | 6be18486825376d1dc25dc075da44684c7fcbc47 (diff) | |
| download | networkx-2db9682a176e2ae4192253aac1687f5dc001ea9a.tar.gz | |
Deprecate info (#5341)
Diffstat (limited to 'networkx/classes')
| -rw-r--r-- | networkx/classes/function.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/networkx/classes/function.py b/networkx/classes/function.py index 6830e59a..61cead31 100644 --- a/networkx/classes/function.py +++ b/networkx/classes/function.py @@ -574,7 +574,16 @@ def info(G, n=None): NetworkXError If n is not in the graph G + .. deprecated:: 2.7 + ``info`` is deprecated and will be removed in NetworkX 3.0. """ + import warnings + + warnings.warn( + ("info is deprecated and will be removed in version 3.0.\n"), + DeprecationWarning, + stacklevel=2, + ) if n is None: return str(G) if n not in G: |
