Reading graphs with generic ids

Added possibility to read graphs from files, when graph nodes have generic ids (ex. String or Long). Added new test cases (moved from specs.Specification to scalatest.WordSpec) and changed some examples.
I guess that is what @agrewal also means. Next few lines are not sorted.