Advanced-graphs

20 articles

dsa1 min read

Graph Coloring and Bipartite Check

Check if a graph is bipartite using BFS 2-coloring. A graph is bipartite if and only if it contains no odd-length cycles — equivalent to being 2-colorable.

Read →
dsa2 min read

Reconstruct Itinerary — Hierholzer's Eulerian Path

Find the itinerary using all flight tickets exactly once (Eulerian path). Uses Hierholzer's algorithm: DFS with post-order insertion into result — the only graph algorithm that uses post-order for path construction.

Read →