Discover the answers to your questions at Westonci.ca, where experts share their knowledge and insights with you. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

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.