Ejemplo n.º 1
0
#Travis Roundy
#CSCI 3202-Intro to Artificial Intelligence
#Assignment 1

import sys
from Queue import Queue
from Stack import Stack
from BinaryTree import Node
from BinaryTree import BinaryTree
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())