prints shortest hop path in order