예제 #1
0
    def __init__(self, root=0):

        DirectedGraph.__init__(self)
        self.graph = defaultdict(dict)
        self.root = root
예제 #2
0
    def clearGraph(self):

        DirectedGraph.__init__(self)
예제 #3
0
    def __init__(self):
        DirectedGraph.__init__(self)

        self.V = 0
	def __init__(self, vertices):

		DirectedGraph.__init__(self)
		self.graph = defaultdict(dict)
		self.V = vertices