Graph Basics and Terminology

Medium
17 views 22 Dec 2025
Explain basic graph terminology including vertices, edges, degree, path, cycle, and connected components with simple examples....

Types of Graphs

Medium
14 views 22 Dec 2025
Describe different types of graphs such as directed, undirected, weighted, unweighted, cyclic, and acyclic graphs....

Graph Representation Using Adjacency List

Medium
15 views 22 Dec 2025
Represent a graph using an adjacency list and explain why it is memory efficient for sparse graphs....

Graph Representation Using Adjacency Matrix

Medium
15 views 22 Dec 2025
Represent a graph using an adjacency matrix and discuss its advantages and disadvantages....

Breadth First Search Traversal

Medium
13 views 22 Dec 2025
Traverse a graph using BFS and explain how the queue data structure is used....

Depth First Search Traversal

Medium
15 views 22 Dec 2025
Traverse a graph using DFS and explain the recursive approach....

Detect Cycle in Undirected Graph

Medium
21 views 22 Dec 2025
Detect whether an undirected graph contains a cycle using DFS or BFS....

Detect Cycle in Directed Graph

Medium
16 views 22 Dec 2025
Detect cycles in a directed graph using DFS and recursion stack....

Connected Components in Graph

Medium
15 views 22 Dec 2025
Find the number of connected components in an undirected graph....

Topological Sorting of Graph

Medium
13 views 22 Dec 2025
Perform topological sorting on a directed acyclic graph and explain its applications....

Shortest Path in Unweighted Graph

Medium
15 views 22 Dec 2025
Find the shortest path between two vertices in an unweighted graph using BFS....

Dijkstra Algorithm

Medium
13 views 22 Dec 2025
Compute shortest paths from a source vertex in a graph with non-negative weights....

Bellman Ford Algorithm

Medium
13 views 22 Dec 2025
Find shortest paths and detect negative weight cycles using Bellman-Ford algorithm....

Floyd Warshall Algorithm

Medium
13 views 22 Dec 2025
Find shortest paths between all pairs of vertices using dynamic programming....

Minimum Spanning Tree Using Prim

Medium
16 views 22 Dec 2025
Construct a minimum spanning tree using Prim’s algorithm....

Minimum Spanning Tree Using Kruskal

Medium
14 views 22 Dec 2025
Construct a minimum spanning tree using Kruskal’s algorithm....

Union Find Data Structure

Medium
13 views 22 Dec 2025
Explain Union-Find (Disjoint Set Union) and its use in graph problems....

Bipartite Graph Check

Medium
13 views 22 Dec 2025
Check whether a graph is bipartite using BFS or DFS coloring....

Strongly Connected Components

Medium
12 views 22 Dec 2025
Find strongly connected components using Kosaraju’s algorithm....

Graph Coloring Problem

Medium
16 views 22 Dec 2025
Color a graph such that no two adjacent vertices share the same color....