summaryrefslogtreecommitdiff
path: root/networkx/classes/function.py
diff options
context:
space:
mode:
Diffstat (limited to 'networkx/classes/function.py')
-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: