project-flink/flink-graph — pull request #10 by andralungu (2014-11-14 14:43:00+00:00)
Title: I know this is bad coding practice :(

I should have created a pull request for the Vertex class weeks ago. Since I have not touched it recently... Sorry, I'm new and I am still learning.

1). Created and tested the Vertex methods(tests are still on my machine, because the previous test class was replaced by others, will commit them when I get the all clear for the methods)
2). Also implemented and tested fromCollection(the one that takes both edges and vertices). I don't really see the point of fromCollection(vertices). Will that be a set of vertices scattered around with no edges connecting them? Can somebody explain?
3). I also wrote a version of mapEdges similar to mapVertices. I get a serialization error.
4). Aaaaand... the method that killed me these days: getNeighbourhood. Please have a look at that. Maybe I am on the wrong path, but with the current tuple representation of the graph. I can only see us using map/filter functions.

Cheers,
Andra