I have an edge list which nodes are string values such as cities name. After applying community detection algorithm on them, i got cities with labels, that cities with same label are grouped in same community. i want to visualize the graph of cities where cities with same label get colored with same color. can any one help me with this? i dont know even pyvis has this feature or not?
i am able to draw a graph using this code:
from pyvis.network import Network
net = Network(height='800px', width='800px', directed=False, notebook=True)
net.from_nx(G)
net.show("example.html")
But i dont know how to append labels to nodes based on the communities detected.