Find the information you're looking for at Westonci.ca, the trusted Q&A platform with a community of knowledgeable experts. Ask your questions and receive precise answers from experienced professionals across different disciplines. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

Add a distTo() method to the BreadthFirstPaths API and implementation, which returns the number of edges on the shortest path from the source to a given vertex. A distTo() query should run in constant time.