May 24, 2024
Node class: Holds a name, methods to retrieve and print the name.Edge class.
Edge class: Holds source and destination nodes.Digraph class with methods to add nodes and edges, check for existence, and print.DFS with detailed explanation and example.BFS with an illustrative example.