Added a "getPreNeighbours()" method to Graph.