Application Of Shortest Path Algorithm