Professional Documents
Culture Documents
Graphs Complete
Graphs Complete
A-Z
LEETCODE
ARTICLES
https://leetcode.com/discuss/general-d
iscussion/655708/Graph-For-Beginner
s-Problems-or-Pattern-or-Sample-Solu
tions
https://leetcode.com/discuss/study-gui
de/2360573/Become-Master-In-Graph
UNION FIND
Union Find:
https://leetcode.com/problems/friend-c
ircles/
https://leetcode.com/problems/redund
ant-connection/
https://leetcode.com/problems/most-st
ones-removed-with-same-row-or-colu
mn/
https://leetcode.com/problems/number
-of-operations-to-make-network-conne
cted/
https://leetcode.com/problems/satisfia
DFS
Start DFS from nodes at boundary:
https://leetcode.com/problems/surroun
ded-regions/
https://leetcode.com/problems/number
-of-enclaves/
DFS PART 2
DFS from each unvisited node/Island
problems
https://leetcode.com/problems/number
-of-closed-islands/
https://leetcode.com/problems/number
-of-islands/
https://leetcode.com/problems/keys-an
d-rooms/
https://leetcode.com/problems/max-ar
ea-of-island/
https://leetcode.com/problems/flood-fill
/
CYCLE FINDING
Breadth First Search
1. Shortest Path:
https://leetcode.com/problems/
01-matrix/
https://leetcode.com/problems/
as-far-from-land-as-possible/
https://leetcode.com/problems/r
otting-oranges/
https://leetcode.com/problems/s
hortest-path-in-binary-matrix/
GRAPH COLORING
Graph coloring/Bipartition
https://leetcode.com/problems/possibl
e-bipartition/
https://leetcode.com/problems/is-grap
h-bipartite/
https://leetcode.com/problems/course-
schedule/
https://leetcode.com/problems/course-
schedule-ii/
TOPO SORTING
PART 2
DFS - Iterative and recursive
solutions
LEETCODE ARTICLES
https://leetcode.com/discuss/general-d
iscussion/655708/Graph-For-Beginner
s-Problems-or-Pattern-or-Sample-Solu
tions
https://leetcode.com/discuss/study-gui
de/2360573/Become-Master-In-Graph