shortest path algorithm - utilites

the necessary graph implementation for shortest path alogrithm.