User:Hfastedge/short path code