shortest path algorithm - utilites

the necessary graph implementation for shortest path alogrithm.
Remove this unused piece of code