I want to create a large networkx graph connecting users to the videos they watch like user -> video in a social graph or network type of graph. There are about 9000 user nodes and 20000 video nodes.
Example CSV File
user, video
1, 11
2, 11
3, 11
4, 12
5, 12
5, 13
What I am trying?
G=nx.read_edgelist("test.csv", delimiter = ',', data=['user','highlight'], create_using=nx.Graph())
nx.draw(G)
What I get: A graph with all red nodes.
What I want: I want the user nodes to be red and the video nodes to be blue. Thank you in advance for your help.