Now the graph supports distance between vertices.