def createVertices(self): for r in range(self.size): for c in range(self.size): vertex = UndirectedGraph.Vertex((r, c)) self.add_vertex(vertex)