swap the cmd format for SSSP