Shortest Path Algorithm Code In Latex