I have an implementation of Louvain that is creating communities with unconnected nodes. I want to know if I am doing Louvain wrong or if this is possible in a correct implementation of Louvain? Please see the picture below.
What is happening is:
- The green node both of those blue nodes are connected to (1KwXk7) started out blue and the nodes on the end were two random colors
- The two nodes on the end (1FqzYq & 1Eevy8) decided they should be blue (one at a time obviously)
- The green color crept up on 1KwXk7 changing the node which bridges this community to green
Is this always going to happen in a correct implementation of Louvain? (If by chance you have a suggestion to fix it, I would be extra grateful)