Implement a breadth-first traversal on a graph.
data-structures-and-algorithms
public repository.Branch Name: graph-breadth-first
Challenge Type: Extending an Implementation
Write the following method for the Graph class:
Utilize the Single-responsibility principle: any methods you write should be clean, reusable, abstract component parts to the whole challenge. You will be given feedback and marked down if you attempt to define a large, complex algorithm in one function definition.
Write at least three test assertions for each method that you define.
Ensure your tests are passing before you submit your solution.
Output:
Pandora, Arendelle, Metroville, Monstroplolis, Narnia, Naboo
Once you’ve achieved a working solution, define a new method that accepts two nodes as input and uses your traversal algorithm to determine if a path exists between the two nodes.
```markdown
Ensure your complete solution follows the standard requirements.