Created
July 28, 2016 07:58
-
-
Save anirudhjayaraman/1f74eb656c3dd85ff440fb9f9267f70a to your computer and use it in GitHub Desktop.
Python Implementation of Undirected Graphs (Adjacency List and Adjacency Matrix)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
`class Vertex:
def init(self,key):
self.id = key
self.connectedTo = {}
class Graph:
def init(self):
self.vertList = {}
self.numVertices = 0