Skip to content

Prims and Dijkstra's Algorithm heapq change #1

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

Merged
merged 2 commits into from
Sep 20, 2019

Conversation

spaden
Copy link
Owner

@spaden spaden commented Sep 20, 2019

#add this to the vertex class, since heapq doesn't allow objects for comparisions
def lt(ob1, ob2):
return ob1.getDistance() < ob2.getDistance()

@spaden spaden merged commit eb38724 into spaden:master Sep 20, 2019
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

Successfully merging this pull request may close these issues.

3 participants