summaryrefslogtreecommitdiff
path: root/networkx/algorithms/cluster.py
diff options
context:
space:
mode:
authorJim Kitchen <jim22k@gmail.com>2022-10-06 15:12:37 -0500
committerMridul Seth <git@mriduls.com>2022-10-12 12:05:14 +0400
commit71434d674cf8ec6c3007dd41b78ee6f407e9b4eb (patch)
tree2a21038cf9ada28a92ae3dfab4b0aab5a06140cd /networkx/algorithms/cluster.py
parentdb7fea7fcbb2470e80e785454e7e71f1a3f80200 (diff)
downloadnetworkx-71434d674cf8ec6c3007dd41b78ee6f407e9b4eb.tar.gz
Dispatch more algorithms and improve auto-test capabilities
Diffstat (limited to 'networkx/algorithms/cluster.py')
-rw-r--r--networkx/algorithms/cluster.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/networkx/algorithms/cluster.py b/networkx/algorithms/cluster.py
index 6df4ce7f..159aba78 100644
--- a/networkx/algorithms/cluster.py
+++ b/networkx/algorithms/cluster.py
@@ -16,6 +16,7 @@ __all__ = [
]
+@nx.dispatch("triangles")
@not_implemented_for("directed")
def triangles(G, nodes=None):
"""Compute the number of triangles.