MUSoC / Visualization-of-popular-algorithms-in-Python

Visualization of popular algorithms using NetworkX Graph libray
204 stars 125 forks source link

Visualization-of-popular-algorithms-in-Python/Prim's/prims.py #36

Closed nenadhristov closed 5 years ago

nenadhristov commented 5 years ago

i am new in python so using this code i got this error: Traceback (most recent call last): File "C:/Users/Nano/PycharmProjects/graph/graph.py", line 76, in G = CreateGraph() File "C:/Users/Nano/PycharmProjects/graph/graph.py", line 58, in CreateGraph if wtMatrix[i][j] > 0 : TypeError: 'map' object is not subscriptable

nenadhristov commented 5 years ago

ohh just translate it to python3 it works good !

pavithrahareddy commented 4 years ago

Hi I'm very new to python coding and am getting the same above error. Can u please help me about what is suppose to be done to remove the error