Fixed bug in node historical chain creation where the created edge
directions were wrong.

Formatted code.

Introducing a new method (VersionedGraph.getVertexForVersion(Vertex,
Version) to find the appropriate vertex for a specific version.