Skip to content

Instantly share code, notes, and snippets.

View onyame's full-sized avatar
🎧
Working at home

Andreas Schreiber onyame

🎧
Working at home
View GitHub Profile
Class Vertex:
def __init__(self, key):
self.id = key
self.connectedTo = {}
def addNeighbor(self, nbr, weight = 0):
self.connectedTo[nbr] = weight
def __str__(self):