Finish add vertices for find path in tasks