Analysis portion almost done for SSSP.