Map based NodeNumberer

This is a step towards reading wikipedia graph with cassovary ids equal to ids of wikipadia pages
For now it is for reading from only one file.


On 23 July 2014 20:22, Pankaj Gupta <notifications@github.com> wrote:

> In
> cassovary-core/src/main/scala/com/twitter/cassovary/util/MapNodeNumberer.scala:
>
> > +  /**
> > +   * Reads map numberer from file in the following format:
> > +   * {{{
> > +   *   name1 id1
> > +   *   name2 id2
> > +   *   ...
> > +   * }}}
> > +   * for example:
> > +   * {{{
> > +   *   banana 12
> > +   *   apple 2
> > +   *   spoon 8
> > +   * }}}
> > +   */
> > +  def forStringsFromFile(filename: String): MapNodeNumberer[String] = {
> > +    val internalToExternal = mutable.HashMap[Int, String]()
>
> note that this won't be thread safe
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/twitter/cassovary/pull/81/files#r15305379>.
>