Example #1
0
	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)
	c.push(2)
	c.push(3)
	c.push(4)
	c.push(5)
	c.push(6)
	c.push(7)
	c.push(8)
	c.push(9)
	c.push(10)
	c.checkSize()
	print("Popped off: %s" % c.pop())
	print("Popped off: %s" % c.pop())
	print("Popped off: %s" % c.pop())
	print("Popped off: %s" % c.pop())
	print("Popped off: %s" % c.pop())
	print("Popped off: %s" % c.pop())
	print("Popped off: %s" % c.pop())
	print("Popped off: %s" % c.pop())
	print("Popped off: %s" % c.pop())
	print("Popped off: %s" % c.pop())
	c.checkSize()
	print("Stack Test completed.")
	print("-------------------------------------------------------")
	print("This is the Graph Test: ")
	graph = Graph()