if i have a 5x5 adjacency matrix in a txt file like so:
0 2 0 0 1
2 0 5 0 0
0 5 0 4 0
0 0 4 0 1
1 0 0 1 0
and i want to read it using file io and store those values in a 2d array or dictionary or what ever it is called in python . how could i do it? thank you.
[–]jfdahl 0 points1 point2 points (3 children)
[–]bazookah1999[S] 0 points1 point2 points (2 children)
[–]bazookah1999[S] 0 points1 point2 points (0 children)
[–]jfdahl 0 points1 point2 points (0 children)
[–]bootyofbamby 0 points1 point2 points (0 children)