returns node with shortest distance