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

Why there is factor 1 for all weights of edges in induced_subgraph (phase 2 of louvain)? #101

Open
alexbarev opened this issue Apr 8, 2023 · 1 comment

Comments

@alexbarev
Copy link

alexbarev commented Apr 8, 2023

Citing from Fast unfolding of communities in large networks, Blondel et al., 2008:

The second phase of the algorithm consists in building a new network whose nodes are now the communities
found during the first phase. 
To do so, the weights of the links between the new nodes are given by the sum of the weight of the links
between nodes in the corresponding two communities [21]. 
Links between nodes of the same community lead to self-loops for this community in the new network.

In the paper it's clear from Figure 1, that inner edges of the same community are counted with factor 1 for self-loops and factor 2 for other cases.

Why is there factor 1 for all weights of edges in induced_graph?

@alexbarev alexbarev changed the title Why there is factor 1 for all type of edges in induced_subgraph (phase 2 of louvain)? Why there is factor 1 for all weights of edges in induced_subgraph (phase 2 of louvain)? Apr 8, 2023
@alexbarev
Copy link
Author

Here is a question at cs.stackexchange where I added math considerations on why actually using factor 1 is correct and wonder why authors used factor 2 for intra-edges.

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

1 participant