Solving Graph Problems
Graph problems look similar to tree problems, but there are a few differences. Trees have a series of nodes. Each node may have zero, one, or multiple child nodes, but it can only be referenced from parent to child, or child to parent. In a graph, each node is called a vertex. Each Vertex can…