Graph Study Guide

Graph Representation and Traversal

HashMap

Connected Components

Union Find

Graph Search Algorithms

Depth-First Search (DFS)

Breadth-First Search (BFS)

Special Search Problems

Shortest Path Problems

Single Source Shortest Path (SSSP)

All Pairs Shortest Path

Floyd–Warshall Algorithm

Bellman-Ford Algorithm

Minimum Spanning Tree (MST)

Topological Sorting

Directed Graph Problems

Advanced Graph Topics

Problem Difficulty Legend

  • 🟩 Easy
  • 🟨 Medium
  • 🟧 Medium-Hard
  • 🟥 Hard
  • ⬛ Very Hard

Additional Resources