I have a dataset that contains a user and each friend they have. The format is similar to the below where there is a user_id field and friend_id field containing the corresponding IDs of each friend.
user_id | friend_id
A B
A C
B A
B G
I'm aiming to get an undirected graph showing an edge between each user and every friend they have like below.
A - B - G
|
C
I'm having difficulty finding out how to link pandas to networkx or graphviz and other resources that expand on creating a social graph from tabular data.
