I have a text file with data as below:
A D 15
B A 11
C H 2
. . .
. . .
I read data using Dataframe in Python. Then I want to create a graph with vertices in columns 1 & 2 and column 3 is the weight.
How can I create a graph from the data? Thank you!