Created
September 16, 2017 05:40
-
-
Save bvsbrk/4a5204da90c31a41e4ce850e929c2f7d to your computer and use it in GitHub Desktop.
Description about Graph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Vertex import Vertex | |
class Graph: | |
def __init__(self): | |
self.verticesList = {} | |
def addVertex(self, key): | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Graph contains all the vertices that belong to this graph.
The vertices list looks like this :
{
"a" : Vertex("a"),
"b" : Vertex("b"),
................................
...........All vertices
}