so, now i want to implement dijkstra_shortest_path , it is giving errors. Please guide me how i can implement this method. 

It's hard to say without a little more context. What is the type of the graph?
 
Andrew Sutton
andrew.n.sutton@gmail.com