Added NearestNode method to Graph.cs