GATE CSE · Engineering Mathematics
Generate GATE-level questions covering graph terminology (vertices, edges, degree), types of graphs (complete, bipartite, regular, planar), graph traversals (BFS, DFS), spanning trees (MST via Kruskal/Prim), shortest paths (Dijkstra, Bellman-Ford), Eulerian/Hamiltonian paths, graph coloring, and matching.
Concept summary for GATE CSE 2027 · 115 practice questions available
Study of graphs G = (V, E) - vertices (nodes) connected by edges. Models networks, relationships, and paths.
| Type | Property |
|---|---|
| Connected | Path exists between every pair of vertices |
| Bipartite | Vertices split into two sets, edges only between sets |
| Complete bipartite Km,n | Every vertex in set 1 connected to every vertex in set 2 |
| Tree | Connected + acyclic. Edges = n−1 for n vertices |
| Forest | Acyclic (collection of trees) |
| Planar | Can be drawn without edge crossings |
For a tree with n vertices:
BFS (Breadth First Search): Uses queue. Finds shortest path in unweighted graph. Time: O(V+E)
DFS (Depth First Search): Uses stack/recursion. Used for cycle detection, topological sort. Time: O(V+E)
Eulerian Path/Circuit (visits every EDGE exactly once):
Hamiltonian Path/Circuit (visits every VERTEX exactly once):
Euler's formula: V − E + F = 2 (V=vertices, E=edges, F=faces including outer face)
Handshaking lemma instantly eliminates invalid graph configurations. Eulerian circuit conditions (all even degree) are directly tested. Euler's formula V−E+F=2 combined with E≤3V−6 is used to prove non-planarity. For cycle detection: DFS back edge → cycle exists.