Example #1
0
from Graph import Graph

if __name__ == "__main__":
	print("This is the Queue Test. Added 10 integers to the queue:")
	c = Queue()
	c.Add(1)
	c.Add(2)
	c.Add(3)
	c.Add(4)
	c.Add(5)
	c.Add(6)
	c.Add(7)
	c.Add(8)
	c.Add(9)
	c.Add(10)
	print("Dequeued: %s" % c.Remove())
	print("Dequeued: %s" % c.Remove())
	print("Dequeued: %s" % c.Remove())
	print("Dequeued: %s" % c.Remove())
	print("Dequeued: %s" % c.Remove())
	print("Dequeued: %s" % c.Remove())
	print("Dequeued: %s" % c.Remove())
	print("Dequeued: %s" % c.Remove())
	print("Dequeued: %s" % c.Remove())
	print("Dequeued: %s" % c.Remove())
	print("Dequeued: %s" % c.Remove())
	print("Queue Test Completed.")
	print("-------------------------------------------------------")
	print("This is the Stack Test. Added 10 elements to the stack:")
	c = Stack()
	c.push(1)