Optional limit used for limiting depth or degree of nodes that are added to the queue.
Parameters used to limit Traversers defined below.
Stores information of three colors assigned to node ids (Ints).
We use node colors in the QueueBasedTraverser.