summaryrefslogtreecommitdiff
path: root/networkx/algorithms/isolate.py
diff options
context:
space:
mode:
Diffstat (limited to 'networkx/algorithms/isolate.py')
-rw-r--r--networkx/algorithms/isolate.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/networkx/algorithms/isolate.py b/networkx/algorithms/isolate.py
index d59a46c4..0a077177 100644
--- a/networkx/algorithms/isolate.py
+++ b/networkx/algorithms/isolate.py
@@ -6,7 +6,7 @@ import networkx as nx
__all__ = ["is_isolate", "isolates", "number_of_isolates"]
-@nx.dispatch("is_isolate")
+@nx.dispatch
def is_isolate(G, n):
"""Determines whether a node is an isolate.
@@ -39,7 +39,7 @@ def is_isolate(G, n):
return G.degree(n) == 0
-@nx.dispatch("isolates")
+@nx.dispatch
def isolates(G):
"""Iterator over isolates in the graph.
@@ -85,7 +85,7 @@ def isolates(G):
return (n for n, d in G.degree() if d == 0)
-@nx.dispatch("number_of_isolates")
+@nx.dispatch
def number_of_isolates(G):
"""Returns the number of isolates in the graph.