Finding the shortest path with PesCa: A tool for network reconstruction