Improved traversers

Added abstract class QueueBasedTraverser holds general logic for most
traversers.
Fixed errors in InfoKeepers.
Added InfoKeeper that uses IntToBoolean fastutil map to store Boolean
values.
Changed BreadthFirstTraverser so that first node is the node we start
traverse from (to be consistent with other traversals).
It's possible -- java.lang.Integer wraps primitive java int

typecasting is fine

On Jul 2, 2014, at 1:40 PM, Szymon <notifications@github.com> wrote:

> In cassovary-core/src/main/scala/com/twitter/cassovary/graph/tourist/BoolInfoKeeper.scala:
> 
> > +      None
> > +    }
> > +  }
> > +
> > +  /**
> > +   * Clear underlying map
> > +   */
> > +  def clear() {
> > +    infoPerNode.clear()
> > +  }
> > +
> > +  /**
> > +   * Get info for all nodes as an array of (key, value) tuples
> > +   */
> > +  def infoAllNodes: Int2BooleanMap = infoPerNode
> > +
> The problem is similiar to one explained here:
> http://stackoverflow.com/questions/6991340/scala-convert-listint-to-a-java-util-listjava-lang-integer
> 
> So should I use typecasting (second response)?
> 
> —
> Reply to this email directly or view it on GitHub.
>