From c2111a36841d5e43b6beae1fd667996d35646e30 Mon Sep 17 00:00:00 2001 From: Jim Kitchen Date: Tue, 11 Oct 2022 15:24:14 -0500 Subject: Allow dispatcher decorator without a name - Name is taken from the decorated function - Raise error if backend doesn't implement a decorated function which is called - Check for duplicate names for dispatching algorithms --- networkx/algorithms/dominating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networkx/algorithms/dominating.py') diff --git a/networkx/algorithms/dominating.py b/networkx/algorithms/dominating.py index 3f2da907..f80454b7 100644 --- a/networkx/algorithms/dominating.py +++ b/networkx/algorithms/dominating.py @@ -64,7 +64,7 @@ def dominating_set(G, start_with=None): return dominating_set -@nx.dispatch("is_dominating_set") +@nx.dispatch def is_dominating_set(G, nbunch): """Checks if `nbunch` is a dominating set for `G`. -- cgit v1.2.1