I want to detect specific number of communities in networks, which require algorithms, where number of communities are specified in advance. Also if there are any, I would like to know how to implement (R, Python).

  • $\begingroup$ Please have a look at the 'How to ask' page. Your question is quite broad and could possibly be narrowed down. $\endgroup$ – deemel Jan 15 '18 at 11:30

Fixing the number of communities contradicts the quality.

Assuming you have 5 disconnected components, but insist on 4 communities, the algorithm would have to randomly merge 2 disconnected parts.

Most users will not be accepting such a loss in quality, so you will need to implement such a variant yourself. Please begin writing code, and update your question with code when you are having issues.

| cite | improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.