Implement distance between vertices
Seperate nearest neighbour determination from graph buildign