How can I visualize communities if there are overlapping communities in the graph? I can use any module in python (networkx, igraph, matplotlib, etc.) or R.
For example, information on nodes, edges, and the nodes in each community is given as follows. Note that node G spans two communities.
list_nodes = ['A', 'B', 'C', 'D','E','F','G','H','I','J']
tuple_edges = [('A','B'),('A','C'),('A','D'),('B','C'),('B','D'), ('C','D'),('C','E'),
('E','F'),('E','G'),('F','G'),('G','H'),
('G','I'), ('G','J'),('H','I'),('H','J'),('I','J'),]
list_communities = [['A', 'B', 'C', 'D'],['E','F','G'],['G', 'H','I','J']]
I would like a plot that visualizes the community as shown below.
In networkx, it is possible to colour-code each node like this post, but this method is not suitable when communities overlap.
In igraph, communities can be visualised using the community extraction method included in the package, as described in this post. However, in my case I want to define communities using the list of nodes contained in each community.