From 1b1b88d300e39725514668959fd6ec319cf17761 Mon Sep 17 00:00:00 2001 From: Manuel Francisco Date: Sun, 23 Jan 2022 18:05:07 +0100 Subject: [PATCH] :memo: Fix expansion formula in docs [ci skip] --- cdlib/evaluation/fitness.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdlib/evaluation/fitness.py b/cdlib/evaluation/fitness.py index a07fdb3a..efe16453 100644 --- a/cdlib/evaluation/fitness.py +++ b/cdlib/evaluation/fitness.py @@ -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