Skip to content

Commit

Permalink
Merge pull request #199 from shakebeforeuse/fix-expansion-docs
Browse files Browse the repository at this point in the history
📝 Fix expansion formula in docs [ci skip]
  • Loading branch information
GiulioRossetti authored Jan 23, 2022
2 parents b2c6311 + 1b1b88d commit 2f99722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cdlib/evaluation/fitness.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ def expansion(graph: nx.Graph, community: object, summary: bool = True) -> objec
.. math:: f(S) = \\frac{c_S}{n_S}
where :math:`n_S` is the number of edges on the community boundary, :math:`c_S` is the number of community nodes.
where :math:`c_S` is the number of edges on the community boundary, :math:`n_S` is the number of community nodes.
:param graph: a networkx/igraph object
:param community: NodeClustering object
Expand Down

0 comments on commit 2f99722

Please sign in to comment.