Skip to content

Support for Fixing the number of clusters #89

@Alex-Mathai-98

Description

@Alex-Mathai-98

Hi @vtraag - thankyou for this amazing repo. It has been immensely useful.

I have a feature request - can you add an additional argument that fixes the number of communities ? Say, if I want 5 communities (even if that results in partitions with a lower modularity score) - is there a way to fix that ?

While going through your implementation - I have thought of a possible way of doing this (more like a post-processing step with the assumption that leiden will always give more communities than I need).

But wanted to check with you first, before going there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions