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

        DirectedGraph.__init__(self)
        self.graph = defaultdict(dict)
        self.root = root
    def clearGraph(self):

        DirectedGraph.__init__(self)
Beispiel #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