change the implementation of Arc in Graph.
make it more convenient to use get the Nth closest vertex in Graph.