Usage ===== Note that this documentation page only includes the functions intended for single-layer network analysis. We expect that this will be the most common use case for our package, but the package also supports multi-layer networks. For multi-layer usage, see :doc:`multilayer_usage`. .. _modularitypruning: modularitypruning ----------------- .. currentmodule:: modularitypruning .. autofunction:: prune_to_stable_partitions modularitypruning.champ_utilities --------------------------------- These functions provide access to the `CHAMP `_ method of Weir et al. .. currentmodule:: modularitypruning.champ_utilities .. autofunction:: CHAMP_2D modularitypruning.leiden_utilities ----------------------------------- These functions provide access to the `Leiden `_ modularity maximization algorithm and some related utilities. The implementation here is provided by `leidenalg `_. .. currentmodule:: modularitypruning.leiden_utilities .. autofunction:: sorted_tuple .. autofunction:: singlelayer_leiden .. autofunction:: repeated_parallel_leiden_from_gammas modularitypruning.parameter_estimation -------------------------------------- These functions provide the ability to iteratively estimate "correct" values for the resolution parameter in modularity as discussed by `Newman `_ and `Pamfil et al. `_ Here, we maximize modularity via the Leiden algorithm. .. currentmodule:: modularitypruning.parameter_estimation .. autofunction:: iterative_monolayer_resolution_parameter_estimation modularitypruning.parameter_estimation_utilities ------------------------------------------------ These functions provide utilities related to the parameter estimation of `Newman `_ and `Pamfil et al. `_ .. currentmodule:: modularitypruning.parameter_estimation_utilities .. autofunction:: estimate_singlelayer_SBM_parameters .. autofunction:: gamma_estimate .. autofunction:: gamma_estimate_from_parameters .. autofunction:: ranges_to_gamma_estimates .. autofunction:: gamma_estimates_to_stable_partitions .. function:: prune_to_stable_partitions(G, parts, gamma_start, gamma_end, restrict_num_communities=None, single_threaded=False) :noindex: See description in :ref:`modularitypruning`. modularitypruning.plotting -------------------------- See :doc:`plotting_examples`.