src.algorithms.traditional package
Submodules
src.algorithms.traditional.DCSBM module
src.algorithms.traditional.Leiden module
src.algorithms.traditional.Louvain module
src.algorithms.traditional.Markov module
- class src.algorithms.traditional.Markov.Markov(graph: Graph, expansion: int = 2, inflation: int = 2, iterations: int = 100)[source]
Bases:
Algorithm
Markov clustering algorithm
- Parameters:
graph (Graph) – Graph object
expansion (int) – Cluster expansion factor
inflation (int) – Cluster inflation factor
iterations (int) – Maximum number of iterations
src.algorithms.traditional.SBM_em module
src.algorithms.traditional.SBM_metropolis module
src.algorithms.traditional.Spectral module
src.algorithms.traditional.utils module
- src.algorithms.traditional.utils.extract_clusters_from_communities_list(communities: list[list[int]]) list[int] [source]
Extracts clusters from the output of the cdlib library / markov clustering algorithm
- Parameters:
communities (list[list[int]]) – List of communities (list of nodes)
- Returns:
List of clusters
- Return type:
list