Start work on shortest distance by getting links