summaryrefslogtreecommitdiff
path: root/networkx/classes
diff options
context:
space:
mode:
authorJarrod Millman <jarrod.millman@gmail.com>2022-02-19 08:47:18 -0800
committerGitHub <noreply@github.com>2022-02-19 20:47:18 +0400
commit2db9682a176e2ae4192253aac1687f5dc001ea9a (patch)
treed6abae91068534c9a2f4f9a236d213624d32aa6d /networkx/classes
parent6be18486825376d1dc25dc075da44684c7fcbc47 (diff)
downloadnetworkx-2db9682a176e2ae4192253aac1687f5dc001ea9a.tar.gz
Deprecate info (#5341)
Diffstat (limited to 'networkx/classes')
-rw-r--r--networkx/classes/function.py9
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: