commit | 851852240f2fa4453c226ccc5ae88bc03b467388 | [log] [tgz] |
---|---|---|
author | Ian Stapleton Cordasco <graffatcolmingov@gmail.com> | Mon Jun 19 07:19:25 2023 -0500 |
committer | GitHub <noreply@github.com> | Mon Jun 19 07:19:25 2023 -0500 |
tree | 2d9d8288e9c81d8ccbd60a1557d856f545f4e14c | |
parent | 12a327be44b017b5208ef96e171f894e4d7e318c [diff] | |
parent | fa46c60642cf3bec35824c2608a2368765bee38d [diff] |
Merge pull request #108 from tushar-deepsource/patch-1 fix: formula for mccabe complexity in docstring
diff --git a/mccabe.py b/mccabe.py index 302ac6d..cc10d7c 100644 --- a/mccabe.py +++ b/mccabe.py
@@ -84,7 +84,7 @@ def complexity(self): """ Return the McCabe complexity for the graph. - V-E+2 + E-V+2 """ num_edges = sum([len(n) for n in self.nodes.values()]) num_nodes = len(self.nodes)