C++ and Python codes for finding shortest paths of a network with weighted edges.