Skip to content

Instantly share code, notes, and snippets.

@bvsbrk
Created September 16, 2017 05:40
Show Gist options
  • Save bvsbrk/4a5204da90c31a41e4ce850e929c2f7d to your computer and use it in GitHub Desktop.
Save bvsbrk/4a5204da90c31a41e4ce850e929c2f7d to your computer and use it in GitHub Desktop.
Description about Graph
from Vertex import Vertex
class Graph:
def __init__(self):
self.verticesList = {}
def addVertex(self, key):
@bvsbrk
Copy link
Author

bvsbrk commented Sep 16, 2017

Graph contains all the vertices that belong to this graph.

The vertices list looks like this :

{
"a" : Vertex("a"),
"b" : Vertex("b"),
................................
...........All vertices
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment