Table of Contents

Graphs

Connectivity

Disconnected graph has one or more nodes not connected to the rest of the graph.

Edge List or 2D or 3D List

Adjacency

DFS

Depth First Search

Use a Stack.

BFS

Breadth First Search

Use a Queue

Shortest Path Problem

If the edges are unweighted, the shortest past is found via BFS.

Dijkstra's Algorithm