def printGraph(self):
    for i in range(self.numberOfNodes):
        for j in range(len(self.graph[i])):
            if self.graph[i][j]:
                print(i, '->', j)
def printGraph(self):
    for i in range(self.numberOfNodes):
        for j in range(len(self.graph[i])):
            if self.graph[i][j]:
                print(i, '->', j)