diff options
author | Jim Kitchen <jim22k@gmail.com> | 2022-10-11 15:24:14 -0500 |
---|---|---|
committer | Mridul Seth <git@mriduls.com> | 2022-10-12 12:05:14 +0400 |
commit | c2111a36841d5e43b6beae1fd667996d35646e30 (patch) | |
tree | 38fa5e1316ca45a9906169ceb7ac21bfc52a612e /networkx/algorithms/dominating.py | |
parent | 71434d674cf8ec6c3007dd41b78ee6f407e9b4eb (diff) | |
download | networkx-nx-sparse.tar.gz |
Allow dispatcher decorator without a namenx-sparse
- 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
Diffstat (limited to 'networkx/algorithms/dominating.py')
-rw-r--r-- | networkx/algorithms/dominating.py | 2 |
1 files changed, 1 insertions, 1 deletions
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`. |