I'm trying to convert my inputted data from
g.addEdge(0, 1, 7)
g.addEdge(1, 2, 9)
g.addEdge(2, 0,14)
into
g.graph = [
[ 0, 7, 0],
[ 0, 0, 9],
[ 14, 0, 0,],
]
simply, the first and second number as the coordinate to place the last number.
I'm begging for your help, please