Better searching for nearest path graph vertex