This document contains code to perform depth-first search (DFS) and breadth-first search (BFS) on a graph. The DFS code recursively visits all nodes connected to the starting node by traversing depth-wise, printing each node. The BFS code uses a queue to iteratively visit nodes level-by-level starting from the starting node, printing nodes in the order they are visited. Both algorithms are demonstrated on a sample graph with nodes A through J.