  We present PyGenStability, a general-use Python software package that
provides a suite of analysis and visualisation tools for unsupervised
multiscale community detection in graphs. PyGenStability finds optimized
partitions of a graph at different levels of resolution by maximizing the
generalized Markov Stability quality function with the Louvain or Leiden
algorithms. The package includes automatic detection of robust graph partitions
and allows the flexibility to choose quality functions for weighted undirected,
directed and signed graphs, and to include other user-defined quality
functions.
