Add weighted shortest path function

1.Add weighted shortest path function
2.Add a vertex type to store the vertex index and its value