Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nenadhristov opened this issue Jan 31, 2019 · 2 comments
Closed

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

nenadhristov opened this issue Jan 31, 2019 · 2 comments

Comments

@nenadhristov
Copy link

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
Copy link
Author

ohh just translate it to python3 it works good !

@pavithrahareddy
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants