Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dendrogram retrieval? #176

Open
samiMHMD opened this issue Apr 10, 2024 · 3 comments
Open

Dendrogram retrieval? #176

samiMHMD opened this issue Apr 10, 2024 · 3 comments

Comments

@samiMHMD
Copy link

Helloc @vtraag,

Leiden seems to be built like Louvain, in the sense that in the process of finding the best partition the nodes within a community are merged into a metanode, before performing again the nodes mouvment and etc.., here with the metanodes and so on until no improvement on the optimzed function. Like this we form a dendrogram giving a hierarchical representation of the graph with several levels of partitions.
Is there a way to recover the dendrogram from the Leiden aglo?

Thanks in advance,

Regards
Sami

@tiffanycchen
Copy link

tiffanycchen commented Apr 10, 2024

I also want this feature/ want to know is there anyway to achieve this. Thanks!

@tiffanycchen
Copy link

Hi, is there any update on this issue? Thank you!

@AlePur
Copy link

AlePur commented Aug 6, 2024

There is a paper about dendrogram retrieval from flat clusters (non-hierarchical) (https://arxiv.org/abs/2306.00833v2)

More detail can be found in their Algorithm 1, but here is the idea:

  1. apply a graph-clustering algorithm to find the bottom clusters;
  2. (a) compute the similarity between all pairs of bottom clusters;
    (b) merge the two clusters that are the most similar, and update the similarities
    between this new cluster and the existing ones;
    (c) repeat step (2b) until all clusters have been merged into a single one.

The graph clustering algorithm in step 1 would of course be leiden algorithm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants