Minor fix of Node::shortestLinkLength function