def intra_community_edges(G, partition):
    return sum(G.subgraph(block).size() for block in partition)
Expected installers APT_INSTALLER, YUM_INSTALLER, ...
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/community/quality.py/intra_community_edges--crossover with--dataset/ETHPy150Open ros-infrastructure/rosdep/src/rosdep2/catkin_support.py/get_installer