Interview Guides
Given an undirected graph with n nodes labeled 0 to n - 1, an edge list edges, a starting node start, and a target node target, return the length of the shortest path from start to target. If no path exists, return -1. Implement an algorithm that works efficiently for large sparse graphs.
1 <= n <= 10^50 <= edges.length <= 2 * 10^5edges[i].length == 20 <= edges[i][0], edges[i][1] < n0 <= start, target < n