GATE / CS ARCHIVE

SUBJECT COLLECTION

Discrete Mathematics · Graph Theory

63 questions, newest first

GATE CSE has asked 63 questions on Graph Theory (Discrete Mathematics) from 1991 to 2026, in 35 of the 46 papers; the most recent is in GATE CSE 2026 Set 1. In the last five years it carried 2.4 marks per 100-mark paper on average, against 2.2 since 2003. Since 2014 the questions have been 14 NAT, 8 MCQ and 5 MSQ. 5 groups of questions here are solved the same way; “One per method” keeps the newest of each.

Browse topics
Show
2 marks · MSQ
Report issue

Forcing a vertex into every minimum cover

Graph Theory

Question 47, GATE 2026: In a simple undirected graph, the minimum vertex-cover size is k and S is any minimum cover. Which condition always forces a given vertex v into S? A deg(v)≥k+1; B v lies on a path of length k+1; C v lies on a cycle of length k+1; D v belongs to a clique of size k.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A

Givens and goal

In a simple undirected graph, the minimum vertex-cover size is k and S is any minimum cover. Which condition always forces a given vertex v into S? A deg(v)≥k+1; B v lies on a path of length k+1; C v lies on a cycle of length k+1; D v belongs to a clique of size k.

Approach

Use the cost of excluding v to prove A; for each weaker structural condition construct a minimum cover that omits v.

Step-by-step solution

1. Suppose v is excluded from a vertex cover. Every edge incident to v must then be covered by its other endpoint, so all distinct neighbors of v must be included.
2. The graph is simple, so deg(v) counts those distinct neighbors. If deg(v)≥k+1, excluding v forces at least k+1 vertices into the cover, contradicting |S|=k. Hence A forces v into every minimum cover.
3. B fails on the path a—b—c—d. Its minimum cover size is k=2: the disjoint edges ab and cd require at least two vertices, and {b,c} is a cover of size two. Vertex a lies on a length-3 path, which is k+1, yet that minimum cover omits a.
4. C fails on a triangle. Here k=2 because one vertex cannot cover the opposite edge, while any two cover everything. Every vertex lies on the length-3=k+1 cycle but can be excluded by choosing the other two.
5. The same triangle refutes D: each vertex lies in a clique of size k=2 (any incident edge), but is still absent from some minimum cover.
6. Only A always suffices. Being part of a path, cycle, or clique can create a lower bound on the total cover size, but does not by itself specify which particular vertices every optimum must contain.

Original paper, page 35 · Answer key

2 marks · MSQ
Report issue

Two-colorability and traversal cost

Graph Theory

Question 55, GATE 2026: An undirected simple graph is 2-colorable if adjacent vertices always receive different values in {0,1}. Assess A it may contain odd cycles; B it may contain even cycles; C the standard optimal adjacency-list test is Θ(|V|+|E|); D that bound is Θ(|E|log|V|).
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C

Givens and goal

An undirected simple graph is 2-colorable if adjacent vertices always receive different values in {0,1}. Assess A it may contain odd cycles; B it may contain even cycles; C the standard optimal adjacency-list test is Θ(|V|+|E|); D that bound is Θ(|E|log|V|).

Approach

Alternate colors around a cycle and describe a full BFS/DFS coloring test across all components.

Step-by-step solution

1. Along a cycle, a proper two-colouring alternates colours on each successive edge. An odd number of alternations would require the starting vertex to have both colours. Odd cycles are therefore forbidden, making A false.
2. An even cycle can alternate colours consistently. A four-cycle is a direct example, so B is true.
3. Use BFS or DFS from every not-yet-coloured vertex, assign opposite colours across each explored edge, and reject if an edge has equally coloured endpoints. If no conflict occurs, the assignment is a valid two-colouring. Processing all components is essential for disconnected graphs.
4. With adjacency lists, each vertex is visited once and each undirected edge is examined at most twice. This is the standard worst-case Θ(|V|+|E|) traversal bound used by the question, yielding C. No sorting or priority queue is required; the claimed optimal logarithmic-factor bound in D is not the standard bound.

Complexity scope: The stated bound is the conventional full-graph adjacency-list algorithm bound. Particular inputs may be rejected earlier, for example when a conflict is found before traversal finishes.

Algorithm outline: for each uncolored vertex, assign color 0 and start a queue or stack. When traversing u—v, assign an uncolored v the opposite color to u; if v is already colored the same as u, reject. Accept only after every component has been processed. The algorithm need not enumerate cycles explicitly: an inconsistent edge supplies the contradiction automatically. Even-cycle example: vertices around a square can be colored 0,1,0,1 in order.

Original paper, page 43 · Answer key

2 marks · NAT
Report issue

All matchings in an eight-vertex path

Graph Theory

Question 57, GATE 2026: Let G be a path on eight vertices. Count all matchings, including the empty matching, as an integer.
Tap to enlarge
Answer & solution

Official answer: 34

Givens and goal

Let G be a path on eight vertices. Count all matchings, including the empty matching, as an integer.

Approach

Split matchings according to whether the first edge is selected, obtaining a Fibonacci recurrence.

Step-by-step solution

1. Let Mn count matchings of an n-vertex path, including the empty matching. If the first vertex is unmatched, the remaining choices are any matching of the last n−1 vertices, giving Mn−1.
2. If the first vertex is matched, it must use the edge to the second vertex. No other chosen edge may touch either of those vertices, leaving a path on n−2 vertices and Mn−2 choices.
3. These cases are disjoint and exhaustive, so Mn=Mn−1+Mn−2, with M0=M1=1. The values through n=8 are 1,1,2,3,5,8,13,21,34.
4. A separate count by matching size agrees: choosing k nonadjacent edges among the seven edges gives binomial(8−k,k). Summing for k=0,1,2,3,4 yields 1+7+15+10+1=34.

Common error: The empty set is a matching and contributes one. Omitting it gives an off-by-one result.

Recurrence table

    Number of vertices n:   0  1  2  3  4  5   6   7   8
    Number of matchings:    1  1  2  3  5  8  13  21  34

For the separate binomial count, label the seven edges 1,…,7. A matching of size k selects indices i₁<…<ik with ij+1≥ij+2. Compress the mandatory gaps by setting jr=ir−(r−1). This becomes an ordinary k-subset of {1,…,8−k}, explaining binomial(8−k,k), rather than merely quoting that count.

Original paper, page 44 · Answer key

2 marks · MSQ
Report issue

Derive graph bounds from a minimum coloring

Graph Theory

Question 51, GATE 2024: A graph G has n vertices and chromatic number k, the minimum number of colors in a proper coloring. Which always hold? A G contains K_k as a subgraph. B G has an independent set of size at least n/k. C G has at least k(k−1)/2 edges. D G has a vertex of degree at least k.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C

Approach: A proper coloring partitions vertices into independent color classes. Use a coloring with exactly k colors to prove B and C, and small graphs to test A and D.
1. The k color classes together contain n vertices. By the pigeonhole principle, some class has at least n/k vertices (in fact at least ceil(n/k)). No two in that class are adjacent, proving B.
2. Every pair of color classes must have at least one edge between them. Otherwise those two classes could use the same color, producing a (k−1)-coloring and contradicting minimality.
3. There are choose(k,2)=k(k−1)/2 pairs of classes. An edge belongs to only one such pair, so at least that many edges are necessary. C is true.
4. A fails for the five-cycle: its chromatic number is 3, but it contains no triangle K3. D fails for Kk itself, where every vertex has degree k−1 rather than at least k.
Answer: B and C. A clique of size k forces at least k colors, but needing k colors does not force a k-clique.

Original paper, page 32 · Answer key

1 mark · MCQ
Report issue

Interpret the diagonal of the squared adjacency matrix

Graph Theory

Question 17, GATE 2024: A is the adjacency matrix of a simple undirected graph and A=A^−1. What must the graph be? A a cycle; B a perfect matching; C a complete graph; D no such graph exists.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Approach: Convert the inverse equation to A²=I and count length-two walks.

1. Derivation. A=A⁻¹ implies A²=I. For a simple undirected graph, diagonal entry(A²)ᵥᵥ counts the neighbors of v, so every vertex has degree 1. Thus the graph is a disjoint union of edges covering all vertices, a perfect matching. Conversely each two-vertex edge adjacency block squares to identity. Answer B.

2. Explanation and checks. Because A is symmetric with entries 0 or 1, (A²)vv=sum_u A_vu A_uv=sum_u A_vu=degree(v). The identity matrix has diagonal 1, forcing every degree to be exactly one. Following the sole edge from any vertex reaches a partner whose sole edge comes back, so components are isolated two-vertex edges. Such graphs exist whenever the number of vertices is even; they need not form one cycle or a complete graph.

Original paper, page 13 · Answer key

2 marks · NAT
Report issue

Two-color a graph despite crossing edges

Graph Theory

Question 60, GATE 2024: The diagram has eight marked vertices numbered clockwise from the upper-left corner of its top horizontal edge: 1 top-left,2 top-right,3 upper-right,4 lower-right,5 bottom-right,6 bottom-left,7 lower-left,8 upper-left. Edges are the boundary cycle 12,23,34,45,56,67,78,81 plus 14,16,25,27,36,38,47,58. Unmarked crossings are not vertices. Find the chromatic number.
Tap to enlarge
Answer & solution

Official answer: 2

Approach: Produce a valid coloring and separately show that fewer colors cannot suffice.

1. Derivation. Number the eight marked boundary vertices cyclically. Every drawn edge joins an odd-numbered vertex to an even-numbered one, so alternating two colours is a valid colouring. There is at least one edge, ruling out one colour. Thus the chromatic number is 2.

2. Explanation and checks. The two classes are {1,3,5,7} and {2,4,6,8}. Inspection of the full edge list shows every edge crosses between classes, so no two adjacent vertices share a color under this assignment. In fact the listed graph is K4,4, with all sixteen cross-class edges present. It has edges such as 12, so assigning just one color is impossible. Geometric crossings in a drawing do not imply graph adjacency without marked vertices.

Original paper, page 38 · Answer key

1 mark · NAT
Report issue

Graph Theory

Question 30, GATE 2023: An undirected graph on {1,2,3,4,5} has edges {1,2},{2,3},{2,4},{3,5},{4,5}, and self-loops at 3 and 4. Find the sum of the five eigenvalues of its adjacency matrix. Account for the two officially accepted self-loop conventions.
Tap to enlarge
Answer & solution

Official answer: 2 OR 4

Our answer: 2 or 4, according to the self-loop adjacency convention

The sum of eigenvalues equals trace(A). Only the self-loops at vertices 3 and 4 contribute diagonal entries; the other edges do not. If each loop contributes 1 to its adjacency diagonal, the trace is 2. If the undirected-loop convention records 2 on the diagonal to count incidences, the trace is 4. Both exact alternatives are officially accepted: 2 to 2 OR 4 to 4. This is a union of two singleton answers, not the interval from 2 to 4.

Teaching detail. The characteristic polynomial coefficient for the sum of eigenvalues gives trace(A), counting algebraic multiplicity, even without computing individual eigenvalues. Every edge joining two different vertices contributes off-diagonal entries and cannot affect this trace. The only contributions are therefore the two loops. Some adjacency conventions count each loop once, others twice to preserve row-sum degree identities. The official key accepts exactly 2 or exactly 4; 3 is not accepted, despite lying numerically between them. This is why the key must retain separate singleton ranges.

Original paper, page 28 · Answer key

2 marks · MSQ
Report issue

Graph Theory

Question 55, GATE 2023: For a simple finite undirected graph, process vertices in a fixed order and assign each the smallest positive color absent from already colored neighbors. With maximum degree Δ, select valid guarantees: A proper coloring; B at most Δ+1 colors; C at most Δ colors; D exactly the chromatic number of colors.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, B

When a vertex is colored, its chosen color differs from every already-colored neighbor. Each edge therefore has distinct colors at its endpoints after its later endpoint is processed, proving A. At most degree(v) colors are forbidden, so one of the first degree(v)+1 colors is available, proving B. C fails on any complete graph, which needs Delta+1 colors. D fails for a path a-b-c-d processed in the order a, d, b, c: the colors are respectively 1, 1, 2, 3, although the graph is bipartite and has chromatic number 2.

Teaching detail. The proper-coloring invariant can be proved edge by edge: for every edge uv, whichever endpoint is processed later explicitly avoids the earlier endpoint's color. For the degree bound, a vertex with d neighbors sees at most d distinct forbidden colors, so among colors 1 through d+1 at least one remains. On a complete graph with r vertices, Δ=r−1 but r colors are necessary, refuting C. The four-vertex path example refutes optimality without compromising correctness: greedy remains proper while using an avoidable third color.

Original paper, page 58 · Answer key

1 mark · NAT
Report issue

Graph Theory

Question 30, GATE 2022: What is the maximum possible edge count of a disconnected simple undirected graph on 10 vertices?
Tap to enlarge
Answer & solution

Official answer: 36

For a disconnected simple graph with 10 vertices, maximize edges by making each component complete. Moving vertices into the largest component increases the sum of binomial(component size, 2), so the maximum uses sizes 9 and 1. This gives binomial(9, 2)=36 edges.

If two nonempty components have a and b vertices, merging them would add ab edges. To keep at least two components while maximizing edges, use one largest possible component and one isolated vertex. Equivalently for a split k and 10−k the complete-component bound is C(10,2)−k(10−k), largest at k=1 or 9.

Original paper, page 22 · Answer key

2 marks · MCQ
Report issue

Graph Theory

Question 37, GATE 2022: For a simple undirected unweighted graph on at least three vertices with adjacency matrix A, the triangle count is the trace of which matrix? A A³; B A³/2; C A³/3; D A³/6.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

The ith diagonal entry of A³ counts length-three closed walks starting at vertex i. In a simple undirected graph each such walk traverses a triangle. Each triangle contributes three starting vertices and two directions, hence six walks. Therefore the number of triangles is trace(A³)/6, D.

A length-three closed walk i→j→k→i cannot repeat an adjacent vertex because there are no loops, so i,j,k are distinct. Every triangle is counted starting at i,j,k and in each of two orientations: 3×2=6. Dividing by 3 alone would still count both orientations.

Original paper, page 24 · Answer key

2 marks · MSQ
Report issue

Graph Theory

Question 50, GATE 2022: For the Petersen graph define vertices v0…v4,u0…u4, with edges vi–v(i+1), vi–ui, ui–u(i+2), subscripts modulo 5. Select true claims: A chromatic number 3; B Hamiltonian path exists; C isomorphic to the alternate source drawing; D maximum independent-set size 3. Reconstruct the alternate drawing by a 9-cycle h0…h8 plus center h9, with extra edges h0–h9,h3–h9,h6–h9,h1–h5,h2–h7,h4–h8.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A,B,C

Label the outer pentagon v0,…, v4 clockwise from the top, and corresponding inner vertices u0,…, u4. Edges are vi-v(i+1), vi-ui, ui-u(i+2), indices modulo 5. A proper three-coloring is v=(0, 1, 0, 1, 2), u=(1, 0, 2, 2, 1); the outer odd cycle rules out two colors. A Hamiltonian path is v0, v1, v2, v3, v4, u4, u1, u3, u0, u2. For the second drawing label its nine perimeter vertices h0,…, h8 clockwise from the top and its central vertex h9. Its extra edges are h0-h9, h3-h9, h6-h9, h1-h5, h2-h7, h4-h8. An edge-preserving bijection maps (v0, v1, v2, v3, v4, u0, u1, u2, u3, u4) to (h0, h1, h2, h3, h9, h8, h5, h7, h4, h6), proving isomorphism. Finally {v0, v2, u3, u4} is independent, disproving the claimed maximum 3. In fact an independent set of 5 in this cubic 10-vertex 15-edge graph would force every edge across that partition, contradicting its odd cycle, so the maximum is 4. Thus A, B, C.

The explicit coloring is a verifiable upper bound, and the outer 5-cycle supplies the matching lower bound of three. A Hamiltonian path need not close back to its start, so the Petersen graph’s lack of a Hamiltonian cycle is irrelevant. The bijection in the solution preserves all fifteen edges, providing a stronger isomorphism witness than matching degrees alone.

Original paper, page 33 · Answer key

1 mark · NAT
Report issue

Graph Theory

Question 16, GATE 2021: A connected undirected planar graph has eight vertices and five faces. How many edges does it have? Count the unbounded face among the five.
Tap to enlarge
Answer & solution

Official answer: 11

For a connected planar embedding, Euler’s formula is V−E+F=2, including the unbounded face. Hence E=8+5−2=11.

Rearrange Euler's formula as E=V+F−2 and substitute the given values. A tree would have E=V−1 and F=1, illustrating that the exterior region is a face. Here five faces imply four independent cycles, also checked by E−V+1=11−8+1=4. Omitting the exterior face would shift the answer by one.

Original paper, page 20 · Answer key

2 marks · MCQ
Report issue

Graph Theory

Question 36, GATE 2021: G is an undirected unweighted connected graph with adjacency matrix M and diameter equal to its largest shortest-path distance. Let P=M² and define G2 on the same vertices by N_ij=1 if M_ij>0 or P_ij>0, otherwise 0. Which holds universally? A diam(G2)≤⌈diam(G)/2⌉; B ⌈diam(G)/2⌉<diam(G2)<diam(G); C diam(G2)=diam(G); D diam(G)<diam(G2)≤2 diam(G).
Tap to enlarge
Your answer
Answer & solution

Official answer: A

G2 connects vertices whose original distance is at most 2. A shortest G path of lengthd can be compressed into ceil(d/2) G2 edges. Conversely each G2 edge expands into at most 2 G edges, so no shorter G2 path than ceil(d/2) is possible. Thus d_G2(u, v)=ceil(d_G(u, v)/2), and diam(G2)=ceil(diam(G)/2), which in particular satisfies A’s ≤ bound. Self-loops from M² do not shorten distances.

Each positive entry of M² represents a two-edge walk, so a G2 edge can cover at most two original edges. A d-edge shortest path can be grouped into pairs, with one singleton if d is odd, giving an upper bound ⌈d/2⌉. Expanding any k-edge G2 path yields a G walk of at most 2k edges, proving k≥⌈d/2⌉. Taking the maximum over all vertex pairs establishes equality, which is stronger than the selected non-strict bound.

Original paper, page 30 · Answer key

2 marks · NAT
Report issue

Graph Theory

Question 52, GATE 2020: Start with complete bipartite K3,4, add a vertex s adjacent to all seven original vertices, and keep all original edges. What is the minimum number of edge colors? Edges sharing an endpoint must differ.
Tap to enlarge
Answer & solution

Official answer: 7

Worked explanation

A degree-d vertex forces d distinct colors on its incident edges. Vertex s has degree 7, while original vertices have degree 5 or 4, so Δ=7 supplies the lower bound. Do not apply the bipartite edge-coloring theorem directly: adding s creates triangles. Instead verify the constructive coloring below. Its ai-bj matrix rows are [2,3,4,5], [1,4,3,6], [5,1,2,4]. Row colors are distinct and omit the corresponding s-ai color 1,2,3. Columns are [2,1,5],[3,4,1],[4,3,2],[5,6,4]; each is distinct and omits its s-bj color 4,5,6,7 respectively. At s all seven incident colors differ. Every pair of adjacent edges is therefore checked, proving seven colors suffice.

Derivation and answer

The new vertex s has degree 7, so at least 7 edge colors are needed. A concrete 7-coloring proves sufficiency. Call the parts a 0, a 1, a 2 and b0, b1, b2, b3. Give edges s-a 0, s-a 1, s-a 2 colors 1, 2, 3, and s-b0,..., s-b3 colors 4, 5, 6, 7. For the three rows of edges ai-bj, use colors (2, 3, 4, 5), (1, 4, 3, 6), and (5, 1, 2, 4), respectively. Each row and column has distinct colors and avoids its endpoint edge to s. Thus this is a proper edge-coloring with 7 colors, proving the minimum 7.

Original paper, page 15 · Answer key

1 mark · MCQ
Report issue

Hamiltonian cycles in an undirected complete graph

Graph Theory

Question 12, GATE 2019: For an undirected complete graph on n vertices with n>2, count distinct Hamiltonian cycles. Choices: A n!; B (n−1)!; C 1; D (n−1)!/2. Rotations and reversal describe the same undirected cycle.
Tap to enlarge
Your answer
Answer & solution

Official answer: C OR D

Our answer: D generally; official accepts C OR D

Method: count vertex orders while removing the two sources of duplicate descriptions.

1. A Hamiltonian cycle visits every vertex once and returns to its start. Because the graph is complete, any ordering of the vertices produces the required edges.
2. Fix one named vertex as the start. The other n − 1 vertices can be arranged in (n−1)! orders. Fixing the start removes the n equivalent rotations that would appear in an unrestricted n! count.
3. Every undirected cycle is still counted twice: once for each traversal direction. For example, v1,v2,…,vn,v1 and v1,vn,…,v2,v1 use exactly the same undirected edges. Since n>2, these are two distinct orders, so divide by 2.
4. Hence the general count is (n−1)!/2. For n=3 this gives 1; for n=4 it gives 3, showing why the constant answer 1 does not hold for every allowed n.

Result: D is the general formula. The official key also accepts C, the value 1; that is true only for n=3, not for general n>2. Preserve both official scoring alternatives without presenting C as the general formula.

Original paper, page 6 · Answer key

1 mark · NAT
Report issue

Proving the chromatic number

Graph Theory

Question 18, GATE 2018: The undirected graph has vertices a,b,c,d,e,f and edges ab, ac, ae, bc, bd, bf, cd, ce, df, ef. Find its chromatic number.
Tap to enlarge
Answer & solution

Official answer: 3

Method

A coloring result needs both a lower bound and a construction meeting it. The cycle a–b–c–a is a triangle, whose mutually adjacent vertices demand three different colors. Assign color 1 to a,d; color 2 to b,e; color 3 to c,f. Each of the ten listed edges connects different colors, so three suffice. Merely finding a triangle would not alone exclude a need for four or more colors elsewhere.

Solution

Vertices a, b, c form a triangle, so at least 3 colors are necessary. Thus the chromatic number is 3.

Original paper, page 8 · Answer key

2 marks · NAT
Report issue

Graph of adjacent transpositions

Graph Theory

Question 43, GATE 2018: Vertices are all 100! permutations of 1…100. Two vertices are adjacent exactly when one swaps two adjacent positions of the other. If degree is y and connected-component count z, find y+10z.
Tap to enlarge
Answer & solution

Official answer: 109

Method

There are 99 boundaries between consecutive positions, and swapping at distinct boundaries gives distinct neighboring permutations. To prove connectedness construct a path: repeatedly swap an adjacent inverted pair, as in bubble sort. Each move is an edge and reduces inversion count by one, so every permutation reaches the sorted permutation after finitely many steps. Connecting every vertex to a common vertex proves exactly one component. Parity alternates on each move, but bipartiteness does not imply disconnectedness.

Solution

There are 99 adjacent positions available for a swap. Each gives a different permutation, so every vertex has degree 99. Adjacent swaps can sort any permutation to the identity, proving that the graph is connected and z=1. Thus y+10z=99+10=109.

Original paper, page 18 · Answer key

1 mark · NAT
Report issue

Graph Theory

Question 23, GATE 2017: An undirected graph G has n vertices and 25 edges, and every vertex has degree at least 3. What is the maximum possible n?
Tap to enlarge
Answer & solution

Official answer: 16.0

Our answer: 16

1. By the handshaking lemma, the sum of all vertex degrees is twice the edge count, 50. Since each of n vertices contributes at least 3, we have 3n≤50. Therefore n≤floor(50/3)=16.

2. A numerical upper bound is not enough; show that 16 is attainable. Start with a cycle on 16 vertices, providing 16 edges and degree 2 at each vertex. Add the 8 edges joining opposite vertices around the cycle. This gives a simple 3-regular graph with 24 edges.

3. Add any further edge not already present. It raises two degrees to 4 and leaves all others at 3, with exactly 25 edges and 16 vertices. Thus the maximum is indeed 16.

Original paper, page 9 · Answer key

1 mark · NAT
Report issue

Graph Theory

Question 3, GATE 2016: Find the minimum number of colors sufficient to properly vertex-color every planar graph.
Tap to enlarge
Answer & solution

Official answer: 4.0 : 4.0

Our answer: 4

The four-color theorem guarantees four colors suffice for every planar graph. The planar graph K4 requires four distinct colors, so fewer cannot cover every case. Answer 4.

A proper coloring requires different colors only at adjacent vertices. The answer is a universal worst-case guarantee, not the color count for each planar graph: trees often need two and triangles three. K4 can be drawn with one vertex inside a triangle joined to its corners, showing that the four-color lower bound is itself planar.

Original paper, page 26 · Answer key

2 marks · MCQ
Report issue

Graph Theory

Question 28, GATE 2016: U contains 23 distinct compounds; a subset S of 9 compounds has each member reacting with exactly 3 compounds of U. Treat reaction as mutual. Which is always true? I every member of U\S reacts with an odd number; II at least one does; III every member reacts with an even number. A I only; B II only; C III only; D none.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Model mutual reactions as an undirected graph. The nine vertices in S have degree 3, hence are nine odd-degree vertices. The total number of odd-degree vertices must be even, so the remaining 14 vertices contain an odd, in particular nonzero, number of odd-degree vertices. At least one is necessary; all 14 being odd is impossible. Therefore only II, B.

The handshaking identity is Σdeg(v)=2|E|, an even number because every reaction contributes two endpoints. Nine degrees of three contribute 27, so the sum of remaining degrees must be odd. An odd sum contains an odd number of odd summands. This proves II without needing to know any individual reaction partner.

Original paper, page 33 · Answer key

2 marks · NAT
Report issue

Graph Theory

Question 44, GATE 2015: A connected plane graph has 10 vertices, and each face has three boundary edges. How many edges does it have?
Tap to enlarge
Answer & solution

Official answer: 24

Count edge incidences with faces: every edge borders two face sides, so 3F=2E, including the unbounded exterior face. Euler's equation V−E+F=2 becomes 10−E+2E/3=2. Solving yields E=24 and F=16. Checking 3×16=2×24 verifies the count. Ignoring the exterior face would break both equations.

Solution: Every face, including the outer face, has three boundary edges, so 3F=2E. Euler’s formula for the connected plane graph gives 10−E+F=2. Substitution yields E=3·10−6=24.

Original paper, page 16 · Answer key

2 marks · MCQ
Report issue

Graph Theory

Question 61, GATE 2015: For which residue classes of n modulo 4 can a simple self-complementary graph have n vertices? Options: A multiple of 4; B even; C odd; D n≡0 or 1 (mod 4).
Tap to enlarge
Your answer
Answer & solution

Official answer: D

A simple self-complementary graph has the same number m of edges as its complement, so 2m=C(n, 2), or m=n(n−1)/4. This must be an integer, forcing n congruent 0 or 1 modulo 4. Thus D. The statement is a necessary condition; it does not assert every graph of those orders is self-complementary.

If a graph has m edges, its complement has n(n−1)/2−m. An isomorphism between them requires equal edge counts, so m=n(n−1)/4 must be an integer. Among four consecutive residue possibilities, n(n−1) is divisible by 4 exactly when n≡0 or 1 modulo 4. This establishes the necessary arithmetic restriction; the standard existence theorem for self-complementary graphs establishes these classes are attainable, rather than claiming edge integrality alone constructs a graph.

Original paper, page 49 · Answer key

2 marks · NAT
Report issue

Graph Theory

Question 51, GATE 2014: A simple undirected graph has vertices (i,j) with 1≤i,j≤12. Two distinct vertices (a,b),(c,d) are adjacent exactly when |a−c|≤1 and |b−d|≤1. Self-loops are excluded. How many edges exist?
Tap to enlarge
Answer & solution

Official answer: 506

1. Method and setup. The adjacency condition permits horizontal, vertical and diagonal neighboring grid points, like king moves on a chessboard. Count each undirected edge in one direction only. There are eleven gaps per row or column and two diagonals per unit square; longer or wrapping moves are not allowed.

2. Work through the result and its assumptions. Count horizontal and vertical nearest-neighbor edges: 12·11 each. Each of the 11·11 unit squares contributes two diagonals. These are all permitted distinct vertex pairs, so E=132+132+242=506; self-loops are excluded.

Original paper, page 20 · Answer key

2 marks · MCQ
Report issue

Graph Theory

Question 52, GATE 2014: A nonincreasing tuple is graphic if it is the degree sequence of a simple undirected graph. Which six-tuple is not graphic? A: (1,1,1,1,1,1). B: (2,2,2,2,2,2). C: (3,3,3,1,0,0). D: (3,2,1,1,1,0).
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. Method and setup. An even sum of degrees is necessary but not sufficient. Zero-degree vertices cannot be used as neighbors. In C only four vertices can have edges, so a degree-three vertex must connect to all the other nonisolated vertices. This forces more incidence on the proposed degree-one vertex than allowed.

2. Work through the result and its assumptions. For C, two zero-degree vertices leave only four nonisolated vertices. Each of the three degree 3 vertices must connect to all other three, forcing the fourth vertex to have degree at least 3 rather than 1. Thus C is impossible. A is three disjoint edges, B a six-cycle, and D is realized by edges 12, 13, 14, 25 with vertex 6 isolated, giving degrees 3, 2, 1, 1, 1, 0.

Original paper, page 20 · Answer key

1 mark · NAT
Report issue

Graph Theory

Question 3, GATE 2014: What is the maximum number of edges in a bipartite graph with 12 vertices?
Tap to enlarge
Answer & solution

Official answer: 36

1. Set up the reasoning. For a simple bipartite graph with partition sizes a and b, edges can join only opposite parts. Thus at most ab edges exist, with equality for the complete bipartite graph.

2. Derive the result. If the two parts have a and 12−a vertices, at most a(12−a)=36−(a−6)² edges are possible. K6, 6 attains 36. This is the standard simple-graph convention.

3. Check the interpretation. The total-vertex constraint a+b=12 makes the product largest when the parts are balanced. Exhibiting K6,6 is necessary to show the upper bound 36 can actually be attained; a general complete graph is not bipartite.

Original paper, page 30 · Answer key

2 marks · NAT
Report issue

Graph Theory

Question 51, GATE 2014: A simple cycle with n vertices is isomorphic to its complement. Find n.
Tap to enlarge
Answer & solution

Official answer: 5

1. Set up the reasoning. Isomorphic graphs have matching vertex degrees. Every vertex of a cycle has degree 2; in its complement it is adjacent to all vertices except itself and its two cycle neighbors.

2. Derive the result. Every cycle vertex has degree 2, whereas its complement has degree n−3. Isomorphism forces 2=n−3, hence n=5. The complement of C5 is indeed another five-cycle, realized by stepping two vertices at a time around the original cycle.

3. Check the interpretation. The equation 2=n-3 is necessary. Verify sufficiency at n=5: if the original cycle visits vertices 0,1,2,3,4, its complement cycle can visit 0,2,4,1,3,0. Degree counting alone would not prove existence without this check.

Original paper, page 43 · Answer key

2 marks · MCQ
Report issue

Graph Theory

Question 52, GATE 2014: Let δ be minimum vertex degree. For every planar graph with n vertices and δ≥3, which is true? A every planar embedding has at least n/2+2 faces; B every embedding has fewer than n/2+2 faces; C some embedding has fewer than n/2+2 faces; D some embedding has at most n/(δ+1) faces.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step 1: By the degree-sum formula, 2E=Σdeg(v)≥3n, hence E≥3n/2. Step 2: For a planar embedding with c connected components, Euler’s formula is n−E+F=1+c, counting the outer face. Thus F=E−n+1+c≥n/2+1+c. Step 3: Since c≥1, F≥n/2+2 in every embedding, proving A without needing a connectedness assumption. B and C contradict this bound; D offers a much smaller upper bound and cannot be the universal conclusion.

Original paper, page 65 · Answer key

1 mark · MCQ
Report issue

Handshaking lemma for undirected graphs

Graph Theory

Question 25, GATE 2013: For undirected graphs, assess P:the number of odd-degree vertices is even; Q:the sum of all degrees is even. A Ponly; B Qonly; C both; D neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

The source asks about undirected graphs. Each edge contributes 2 to the sum of vertex degrees, so that sum is 2|E| and even. Reducing the sum modulo 2 shows that the number of odd-degree vertices must also be even. Thus both P and Q hold, C.

Count edge endpoints in two ways. Summing degrees counts each undirected edge once at each end, so Σdeg(v)=2|E| and Q holds. Separate even- and odd-degree vertices. Even degrees contribute 0 modulo 2; each odd degree contributes 1. Since the total is even, the count of odd contributions must be even, proving P. The result also accommodates loops if each loop contributes 2 to degree, though the ordinary simple-graph convention suffices.

Original paper, page 5 · Answer key

2 marks · MCQ
Report issue

Line-graph properties

Graph Theory

Question 26, GATE 2013: The line graph has one vertex per original edge, adjacent when the corresponding edges share an endpoint. Which claims hold universally? P line graph of a cycle is a cycle; Q of a clique is a clique; R of a planar graph is planar; S of a tree is a tree. A Ponly; B P, R; C Ronly; D P, Q, S.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

A cycle’s edges form another cycle in the line graph, so P holds. Q fails for K4: two disjoint original edges become nonadjacent vertices. R fails for the planar star K1, 5, whose line graph is nonplanar K5. S fails for the tree K1, 3, whose line graph is the triangle K3. Therefore only P is universally true, A.

A universal assertion can be refuted with one permitted example. On a cycle each edge meets exactly its predecessor and successor, forming another cycle. In K4, edges 12 and 34 are disjoint, so their line-graph vertices are not adjacent: Q fails. A planar star with five leaves has all five edges meeting the center, so its line graph is K5 and nonplanar: R fails. A three-leaf star is a tree but has line graph K3, a cycle: S fails. Only P survives.

Original paper, page 6 · Answer key

1 mark · MCQ
Report issue

Bounded faces in a connected planar graph

Graph Theory

Question 17, GATE 2012: Let G be a simple undirected planar graph on 10 vertices with 15 edges. If G is a connected graph,
        then the number of bounded faces in any embedding of G on the plane is equal to
        (A) 3                   (B) 4                    (C) 5                   (D) 6
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Euler’s formula for a connected plane graph is V−E+F=2, counting the unbounded outer face. With V=10 and E=15, F=7. Exactly one face is unbounded, so the number of bounded faces is 6, D. The count is independent of the particular embedding.

Check: F=E−V+2=15−10+2=7 is the total face count. Removing the exterior gives E−V+1=6. Using seven as the bounded count would mistakenly count the outside region as a bounded face.

Original paper, page 4 · Answer key

2 marks · MCQ
Report issue

Graph isomorphism from cycle and branches

Graph Theory

Question 26, GATE 2012: Which candidate graph is isomorphic to the given graph? All graphs are simple and undirected. The following edge lists faithfully encode the unlabeled drawings; labels are assigned only for this transcription. Given: {01,12,23,34,40,05,06,67}, i.e. a five-cycle with one-edge and two-edge branches attached at vertex 0.
(A) {01,12,20,23,04,45,06,67}.
(B) {01,12,23,34,40,05,06,67}, drawn with a curved edge completing its cycle.
(C) {01,12,23,34,40,15,06,67}.
(D) {01,12,23,30,04,45,06,67}. Each two-digit pair denotes one undirected edge between its digits.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

The given graph consists of one five-vertex cycle, with a pendant edge and a two-edge pendant path attached to the same cycle vertex. That attachment vertex has degree four; two vertices have degree one and the other five have degree two. Option B has exactly this structure: its curved outer edge completes the five-cycle, and its central degree-four vertex supports the one-edge upward branch and the two-edge lower-right branch. Map the attachment vertex, then the two distinct-length branches, then the five-cycle in order to obtain an isomorphism. A has a triangle and D a four-cycle; C attaches its pendant branches at different cycle vertices. Hence B.

Check: An isomorphism preserves cycle lengths, degrees, and which cycle vertices carry branches. Degree sequence alone is not sufficient: candidate C has a different attachment pattern. In the supplied edge encoding, the identity map from the given labels to B demonstrates every edge correspondence.

Original paper, page 6 · Answer key

2 marks · MCQ
Report issue

Length-four cycles in labeled K6

Graph Theory

Question 38, GATE 2012: Let G be a complete undirected graph on 6 vertices. If vertices of G are labeled, then the number of
        distinct cycles of length 4 in G is equal to
        (A) 15                 (B) 30                   (C) 90              (D) 360
Tap to enlarge
Your answer
Answer & solution

Official answer: Marks to All

Our answer: 45 (no listed option)

Choose the four vertices in C(6, 4)=15 ways. On a chosen set, cyclic rotations and reversal represent the same undirected cycle, so there are 4!/(4×2)=3 distinct cycles. The total is 15×3=45. None of the listed 15, 30, 90, 360 equals 45. Counting opposite orientations separately would give 90, but that is not the usual convention for distinct undirected cycles. The scoring key says Marks to All. The absent standard answer is an independent diagnosis, not an attributed official reason.

Check: For four fixed labels a,b,c,d, the three undirected cycles can be represented as a-b-c-d-a, a-b-d-c-a, and a-c-b-d-a. Fixing the first vertex removes rotations, and identifying each traversal with its reverse removes the factor two.

Original paper, page 10 · Answer key

1 mark · MCQ
Report issue

Planarity of tetrahedron and cube graphs

Graph Theory

Question 17, GATE 2011: K4 is the complete graph on four vertices (the source draws a square with both diagonals). Q3 is the eight-vertex cube graph, with vertices the binary triples and an edge when triples differ in one bit. Which statement is TRUE?

(A) K4 is planar but Q3 is not
(B) Both K4 and Q3 are planar
(C) Q3 is planar while K3 is not (the source prints K3 here)
(D) Neither K4 nor Q3 is planar
Tap to enlarge
Your answer
Answer & solution

Official answer: B

K4 has a planar embedding as a triangle with the fourth vertex inside joined to all three corners. Q3 has an embedding as nested squares joined at corresponding corners. Crossings in one drawing do not imply nonplanarity. Both graphs are planar, B.

Planarity is the existence of some drawing without edge crossings, not a property of one particular drawing. For K4, keep three vertices on an outer triangle and place the fourth inside; its three interior spokes do not cross. For Q3, draw one square inside another and join corresponding corners without crossings. These are explicit crossing-free embeddings. The source's K3 typo in C does not alter the correct B: K3 itself is also planar.

Original paper, page 5 · Answer key

2 marks · MCQ
Report issue

Testing graph degree sequences

Graph Theory

Question 28, GATE 2010: Which sequences cannot be degree sequences of any simple graph? I: (7,6,5,4,4,3,2,1); II: (6,6,6,6,3,3,2,2); III: (7,6,6,4,4,3,2,2); IV: (8,7,7,6,4,2,1,1).
Options: (A) I and II; (B) III and IV; (C) IV only; (D) II and IV.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

IV has eight vertices but a degree of 8, impossible in a simple graph. For II, the four highest degrees sum to 24; their vertices can contribute at most 4·3=12 internally and at most 3+3+2+2=10 from the other vertices, totaling only 22. Thus II also fails. Havel–Hakimi reduces I via (5,4,3,3,2,1,0) to (3,2,2,1,0,0), then (1,1,0,0,0), then zeros. III reduces via (5,5,3,3,2,1,1) to (4,2,2,1,1,0), then (1,1,0,0,0), then zeros. Hence I and III are graphical and exactly II and IV fail: D.

The even degree-sum condition alone cannot settle this question: all four sums are even. Sequence II fails an Erdős–Gallai bound on its four degree-six vertices: a vertex inside that set has only three possible neighbors inside it, while vertices outside cannot supply more incidences than their own degrees. Sequence IV already violates the individual maximum n−1=7.

Original paper, page 6

1 mark · MCQ
Report issue

Chromatic number without odd cycles

Graph Theory

Question 2, GATE 2009: A simple connected graph on n≥2 vertices has no odd cycle. Find its chromatic number: A 2; B 3; C n−1; D n.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

An undirected graph with no odd cycle is bipartite, so two colors suffice. Connectedness and n≥2 ensure at least one edge, so one color cannot suffice. The chromatic number is exactly 2, A.

A graph has a two-colouring exactly when it has no odd cycle. One construction assigns colours by even or odd distance from a chosen root. If an edge joined equal-parity vertices, the corresponding paths would create an odd closed walk and hence an odd cycle. The given connected graph with at least two vertices has an edge, so one colour is insufficient. Therefore its chromatic number is exactly 2, not merely at most 2.

Original paper, page 2

1 mark · MCQ
Report issue

Repeated degree in a connected graph

Graph Theory

Question 3, GATE 2009: Which statement holds for every simple connected undirected graph with more than two vertices? A all degrees distinct; B at least two equal degrees; C at least three equal degrees; D all degrees equal.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

For n vertices in a simple connected graph with n>2, each degree lies in{1, ..., n−1}. There are n vertices but only n−1 possible degrees. By the pigeonhole principle at least two share a degree, B. Three equal degrees are not necessary, as a path on four vertices shows.

Connectivity excludes degree 0, and simplicity excludes degree above n−1. Thus n vertices must be assigned one of only n−1 possible degree values. The pigeonhole principle forces a repeated degree, proving B. A three-vertex path has degrees 1, 2, 1, so neither three equal degrees nor all equal degrees is necessary. This example also makes clear why the claim is about at least two, not a particular pair.

Original paper, page 2

2 marks · MCQ
Report issue

Planar-graph vertex-cover bound

Graph Theory

Question 23, GATE 2008: Which is true for every planar graph on n vertices?

(A) It is connected
(B) It is Eulerian
(C) It has a vertex cover of size at most 3n/4
(D) It has an independent set of size at least n/3
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. By the four-color theorem, a simple loopless planar graph has an independent color class of size at least n/4. Its complement covers every edge and has size at most 3n/4, proving C.
2. A planar graph need not be connected or Eulerian. K4 is planar but has maximum independent-set size 1<4/3, refuting D.
3. The standard loopless graph convention is needed for the coloring argument.

Original paper, page 5

1 mark · MCQ
Report issue

Fewest edges in a nonplanar graph

Graph Theory

Question 4, GATE 2007: Let G be a nonplanar graph with the minimum possible number of edges. Which size is intended for G?
Options:
(A) 9 edges, 5 vertices
(B) 9 edges, 6 vertices
(C) 10 edges, 5 vertices
(D) 10 edges, 6 vertices
Tap to enlarge
Your answer
Answer & solution

Answer: B for the minimal nonplanar core (no official key was published)

1. Approach. Compare the two minimal nonplanar cores K5 and K3,3. Subdividing edges cannot reduce their edge counts. Be careful that isolated vertices do not affect planarity or edge count.

2. Derivation and interpretation. By Kuratowski’s theorem a nonplanar graph contains a subdivision of K5 or K3,3. Such a subgraph needs at least 10 or 9 edges respectively. K3,3 attains the 9-edge minimum with 6 vertices, giving B. The vertex count is not forced by edge minimality alone: isolated vertices can be added without changing the 9 edges or nonplanarity. Thus 6 is the minimum/core vertex count, not a universal claim for every graph minimizing only edges.

Original paper, page 2

2 marks · MCQ
Report issue

Graph guaranteed to have an Euler circuit

Graph Theory

Question 23, GATE 2007: Which graph is guaranteed to have an Eulerian circuit?
Options:
(A) Any k-regular graph with even k
(B) The complete graph on 90 vertices
(C) The complement of a cycle on 25 vertices
(D) None of these
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Approach. For a nontrivial undirected graph, all nonisolated vertices must be connected and have even degrees. Check connectedness as well as parity; even degrees alone do not suffice.

2. Derivation and interpretation. The complement of C25 has degree 24−2=22 at each vertex and is connected, so it has an Euler circuit, C. An even-regular graph need not be connected, so A is not guaranteed. K90 has odd degree 89 and is not Eulerian. The connectedness of the complement follows because any two nonadjacent vertices were neighbors in the cycle and share a vertex nonadjacent to both on that cycle.

Original paper, page 5

2 marks · MCQ
Report issue

Isolated vertices in subset-intersection graph

Graph Theory

Question 71, GATE 2006: A simple undirected graph G has one vertex for each of the 2^n subsets of an n-element set, n≥6. Two distinct vertices are adjacent iff their subsets intersect in exactly two elements. How many vertices have degree zero?
Options:
(A) 1
(B) n
(C) n+1
(D) 2^n
Question 71, GATE 2006: A simple undirected graph G has one vertex for each of the 2^n subsets of an n-element set, n≥6. Two distinct vertices are adjacent iff their subsets intersect in exactly two elements. How many vertices have degree zero?
Options:
(A) 1
(B) n
(C) n+1
(D) 2^n
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. The empty set and all n singleton subsets cannot intersect any subset in exactly two elements, so all n+1 are isolated. Every set S of size at least 3 is adjacent to any two-element subset of S.

2. Every two-element S is adjacent to a proper superset S∪{x}, available because n≥6. No other isolated vertices exist.

3. Answer n+1, C.

4. Teaching check: A set with fewer than two elements cannot share two elements with any other set. Conversely, every larger set has a two-element intersection partner: use a contained pair when its size exceeds two, or a proper superset when its size is exactly two.

Original paper, page 11

2 marks · MCQ
Report issue

Maximum degree in subset-intersection graph

Graph Theory

Question 72, GATE 2006: A simple undirected graph G has one vertex for each of the 2^n subsets of an n-element set, n≥6. Two distinct vertices are adjacent iff their subsets intersect in exactly two elements. What is the maximum vertex degree?
Options:
(A) C(n/2,2)·2^(n/2)
(B) 2^(n−2)
(C) 3·2^(n−3)
(D) 2^(n−1)
Question 72, GATE 2006: A simple undirected graph G has one vertex for each of the 2^n subsets of an n-element set, n≥6. Two distinct vertices are adjacent iff their subsets intersect in exactly two elements. What is the maximum vertex degree?
Options:
(A) C(n/2,2)·2^(n/2)
(B) 2^(n−2)
(C) 3·2^(n−3)
(D) 2^(n−1)
Question 72, GATE 2006: A simple undirected graph G has one vertex for each of the 2^n subsets of an n-element set, n≥6. Two distinct vertices are adjacent iff their subsets intersect in exactly two elements. What is the maximum vertex degree?
Options:
(A) C(n/2,2)·2^(n/2)
(B) 2^(n−2)
(C) 3·2^(n−3)
(D) 2^(n−1)
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. For a vertex S with |S|=k, choose the two intersection elements from S and any subset outside S, giving C(k,2)·2n−k candidate neighbors. When k=2 subtract one to exclude S itself; for k=0,1 degree is zero.

2. For k≥3, the ratio of successive degrees is (k+1)/(2(k−1)), equal to 1 at k=3 and less than 1 for k>3. The maximum is therefore attained at k=3 and k=4, with degree 3·2n−3.

3. This exceeds the k=2 degree 2n−2−1. Thus C.

4. Teaching check: For a size-k set, choose which two of its k elements are in the neighbor; no other element of the set may be in that neighbor. Every outside element is freely included or excluded. Exclude a self-neighbor only when k=2, then compare successive k values rather than assuming k=n/2 maximizes the degree.

Original paper, page 11

1 mark · MCQ
Report issue

Faces in a connected planar embedding

Graph Theory

Question 10, GATE 2005: A simple connected planar graph has 13 vertices and 19 edges. Number of faces including outer face? A6; B8; C9; D13.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Euler’s formula V−E+F=2 includes the unbounded face. With V=13 and E=19, F=2−13+19=8, B.

Euler’s formula for a connected planar embedding is V−E+F=2, where F includes the unbounded outside region. Substituting 13 and 19 gives F=2−13+19=8. Seven would count only bounded regions; forgetting the outside face causes that common off-by-one error. Answer B.

Original paper, page 2

1 mark · MCQ
Report issue

Vertex cover and independence duality

Graph Theory

Question 11, GATE 2005: A simple graph with 20 vertices and 100 edges has minimum vertex cover size 8. Maximum independent-set size? A12; B8; C below 8; D above 12.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

A vertex set is a cover exactly when its complement is independent. Consequently the minimum-cover size plus maximum-independent-set size equals the number of vertices. Here α=20−8=12, A; the 100-edge count is not needed.

A vertex set is a cover exactly when its complement is independent: an uncovered edge would have both endpoints in that complement. Taking a smallest cover therefore gives a largest independent set, so α(G)+τ(G)=|V|. The answer is 20−8=12. The edge count is not needed once the minimum cover size is given.

Original paper, page 2

2 marks · MCQ
Report issue

Recognizing a nonplanar graph

Graph Theory

Question 47, GATE 2005: Choose the nonplanar graph among four drawings. G1 is a six-cycle with all three opposite-vertex chords. G2 is a triangular prism (GFG additionally draws a diagonal in each of two distinct rectangular faces). G3 is K4 with an extra vertex joined to the endpoints of one edge. G4 is K5 with one edge removed. A G1; B G2; C G3; D G4. These adjacency descriptions replace drawing layout, not graph structure.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Label G1 cyclically around its six outer vertices. Its hexagon plus the three opposite-vertex chords is K3, 3, with bipartition the alternating vertices; it is nonplanar. The paper adds two diagonals across two distinct rectangular faces of that prism; those edges can each be embedded within its face, so it remains planar. G3 is K4 with a fifth vertex joined to endpoints of one edge; it is planar. G4 is K5 minus the edge between the two upper side vertices; it is planar (a triangular bipyramid). Thus G1, A, in the paper despite the G2 drawing difference.

Planarity is invariant under redrawing. The alternating vertices of G1 form two sets of three, and each vertex meets all three vertices across the partition, giving exactly K3, 3. Its bipartite planar bound m≤2v−4 would require 9≤8, impossible. For each remaining graph the indicated construction gives a planar embedding: prism faces accommodate the added diagonals separately; an extra vertex can be placed next to an edge of a planar K4 embedding; K5 minus one edge is a triangular bipyramid. Therefore only G1 fails.

Original paper, page 6

2 marks · MCQ
Report issue

Bound a matching by a row-column cover

Graph Theory

Question 76, GATE 2004: All nonzero entries of an M×N matrix are covered by the union of a specified a rows and b columns. What universal upper bound holds on the number of nonzero entries that can be selected with no two in the same row or column?
Options:
(A) ≤a+b
(B) ≤max(a,b)
(C) ≤min(M−a,N−b)
(D) ≤min(a,b)
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Treat each nonzero entry as an edge from its row vertex to its column vertex. The stated a rows together with b columns cover all such edges.

2. Any selection with no two entries in the same row or column is a matching. Each chosen entry must use at least one of the a+b covering vertices, and no covering vertex can serve two chosen entries.

3. Consequently the selection has at most a+b entries, A. The bound can be attained with edges using distinct other endpoints; it need not equal the actual maximum.

4. Teaching check: The covering rows and columns form a vertex cover in a bipartite graph. A matching cannot reuse any covering vertex, so its size is at most the cover size. This does not require invoking the stronger theorem equating maximum matching and minimum cover.

Original paper, page 11

2 marks · MCQ
Report issue

Chromatic number of the eight-vertex diagram

Graph Theory

Question 77, GATE 2004: Find the chromatic number of this undirected graph. Textual equivalent of figure: outer vertices T,R,B,L form cycle T–R–B–L–T; inner vertices u,v,w,z form cycle u–v–w–z–u. Additional edges are T–u,T–v,R–v,R–w,B–w,B–z,L–z,L–u. There are no other edges.
Options:
(A) 2
(B) 3
(C) 4
(D) 5
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Name outer vertices T,R,B,L and inner square vertices u (upper-left), v (upper-right), w (lower-right), z (lower-left). The diagram has outer cycle T-R-B-L-T, inner cycle u-v-w-z-u, and edges T-u,T-v,R-v,R-w,B-w,B-z,L-z,L-u.

2. Suppose three colours suffice. Triangle Tuv can be coloured T=3,u=1,v=2.

3. Triangle Tuz is not present, but L is adjacent to T and u, forcing L=2. Since z is adjacent to L and u, z=3.

4. Since w is adjacent to z and v, w=1. B, adjacent to z and w, must then be 2, contradicting edge B-L.

5. Four colours suffice: T=B=1, L=R=2, u=w=3, v=z=4. Therefore the chromatic number is 4, C.

6. Teaching check: The argument needs both a lower and an upper bound: forcing a contradiction under three colours proves at least four; the explicit assignment proves at most four. Merely observing a triangle would establish only a lower bound of three.

Original paper, page 11

2 marks · MCQ
Report issue

Count dense labelled simple graphs

Graph Theory

Question 79, GATE 2004: How many simple undirected graphs on n labelled vertices have at least (n²−3n)/2 edges? Write N=(n²−n)/2 and C(N,k)=binomial(N,k).
Options:
(A) C(N,N−n)
(B) Σ_(k=0)^(N−n) C(N,k)
(C) C(N,n)
(D) Σ_(k=0)^n C(N,k)
Question 79, GATE 2004: How many simple undirected graphs on n labelled vertices have at least (n²−3n)/2 edges? Write N=(n²−n)/2 and C(N,k)=binomial(N,k).
Options:
(A) C(N,N−n)
(B) Σ_(k=0)^(N−n) C(N,k)
(C) C(N,n)
(D) Σ_(k=0)^n C(N,k)
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. A simple undirected graph on n labelled vertices has N=binomial(n,2) possible edges. The threshold (n²−3n)/2 is N−n.

2. Having at least N−n edges is equivalent to omitting at most n edges. Choose the missing edges: the count is sum from k=0 to n of binomial(N,k), option D, with binomial(N,k)=0 for k>N.

3. This is also sum from j=max(0,N−n) to N of binomial(N,j).

4. Teaching check: Complementing the edge set turns a dense-graph count into a sparse missing-edge count. “At least” requires a sum over several edge counts, whereas one binomial coefficient counts graphs with exactly one edge count. Use zero for binomial terms with impossible k.

Original paper, page 11

2 marks · MCQ
Report issue

Disconnected graph intersection forces a union cycle

Graph Theory

Question 81, GATE 2004: G1=(V,E1) and G2=(V,E2) are connected graphs on the same vertex set with more than two vertices. Their intersection (V,E1∩E2) is disconnected. What must be true of their union (V,E1∪E2)?
Options:
(A) It cannot have a cut vertex
(B) It must have a cycle
(C) It must have a bridge
(D) Its chromatic number exceeds those of both G1 and G2
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. The union is connected because it contains connected G1. If the union had no cycle, it would be a tree.

2. Every connected spanning subgraph of a tree must contain all tree edges: deleting any edge disconnects it. Thus both G1 and G2 would equal that tree, making their intersection connected, a contradiction.

3. Therefore the union must contain a cycle, B. This does not force a bridge or eliminate articulation vertices, and a cycle need not increase chromatic number over both constituent graphs.

4. Teaching check: A connected acyclic union would be a tree, and every tree edge is indispensable to every connected spanning subgraph. Hence both input graphs would contain all its edges, contradicting the disconnected intersection. This contradiction proves a cycle must exist.

Original paper, page 11

2 marks · MCQ
Report issue

Perfect matchings on six vertices

Graph Theory

Question 36, GATE 2003: How many perfect matchings does the complete graph on six labeled vertices have? A. 15; B. 24; C. 30; D. 60.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. A perfect matching partitions all six vertices into three disjoint unordered pairs. Choose the partner of one designated vertex, remove that pair, and repeat with a designated remaining vertex. This avoids counting the same matching in different pair orders. In the factorial calculation, division by 2³ removes within-pair order and division by 3! removes pair order.

2. Pair a fixed vertex with any of 5 others; pair the smallest remaining vertex with any of 3; the final pair is forced. Thus 5×3×1=15 perfect matchings, A. Equivalently 6!/(2³·3!)=15.

Original paper, page 5

2 marks · MCQ
Report issue

Minimum degree from an edge bound

Graph Theory

Question 40, GATE 2003: An undirected graph G=(V,E) satisfies |E|≤3|V|−6. Its minimum degree is min over v∈V of degree(v). Which value cannot be the minimum degree? A. 3; B. 4; C. 5; D. 6.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Apply the handshake lemma: sum of vertex degrees equals twice the number of edges. If every vertex had degree at least 6, the sum would be at least 6|V|, contradicting the bound 6|V|−12. Therefore at least one vertex has degree below 6. No assumption that the graph is planar is needed.

2. The degree sum is 2|E|≤6|V|−12, so the average degree is strictly less than 6. At least one vertex therefore has degree≤5, and the minimum degree cannot equal 6, D. The argument needs an undirected graph and a nonempty vertex set satisfying the inequality, but does not require proving planarity from the edge bound.

Original paper, page 5

1 mark · MCQ
Report issue

Chromatic number of a cycle

Graph Theory

Question 1.4, GATE 2002: What is the fewest colors needed for the vertices of an n-node cycle if adjacent vertices must receive different colors?
(A) 2; (B) 3; (C) 4; (D) n − 2⌊n/2⌋ + 2.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step 1: Separate even and odd cycle lengths.

Step 2: Label successive vertices alternately red and blue. When n is even the last vertex is blue and the first red, so the closing edge is legal. When n is odd both would be red; recolor the last vertex with a third color. The expression n−2floor(n/2) is exactly zero or one, so the option captures both cases rather than claiming one constant color count.

Conclusion: An even cycle alternates two colors. An odd cycle cannot alternate consistently around the closing edge and needs a third color, which suffices. Thus χ=2+(n mod2)=n−2floor(n/2)+2, D, for an ordinary cycle n≥3.

Original paper, page 1

1 mark · MCQ
Report issue

Maximum edges of a simple undirected graph

Graph Theory

Question 1.25, GATE 2002: What is the maximum edge count in an undirected n-vertex graph without self-loops?
(A) n²; (B) n(n−1)/2; (C) n−1; (D) n(n+1)/2.
Question 1.25, GATE 2002: What is the maximum edge count in an undirected n-vertex graph without self-loops?
(A) n²; (B) n(n−1)/2; (C) n−1; (D) n(n+1)/2.
Tap to enlarge
Your answer
Answer & solution

Answer: B under the simple-graph convention (no official key was published)

Step 1: Count unordered vertex pairs.

Step 2: Vertex one can pair with n−1 others, vertex two with n−2 new others, and so on, giving(n−1)+(n−2)+…+1=n(n−1)/2. Dividing the ordered count n(n−1) by two gives the same result. The complete simple graph realizes every pair. If parallel edges are allowed, adding another edge between an existing pair defeats any fixed maximum.

Conclusion: There is one possible edge for each unordered pair of distinct vertices, so the maximum is binomial(n,2)=n(n−1)/2, B, achieved by Kn. This uses the conventional simple-graph interpretation. Excluding self-loops alone does not prohibit parallel edges in a multigraph, for which no finite bound follows.

Original paper, page 3

2 marks · MCQ
Report issue

Counting labeled undirected graphs

Graph Theory

Question 2.15, GATE 2001: How many undirected graphs can be formed on a fixed labeled set of n vertices, without requiring connectedness? Choices: n(n−1)/2, 2^n, n!, 2^[n(n−1)/2]. State the simple loop-free graph convention.
Tap to enlarge
Your answer
Answer & solution

Answer: D under the simple loop-free convention (no official key was published)

Step 1: The fixed labeled vertex set has binomial(n,2)=n(n−1)/2 possible unordered pairs of distinct vertices. Each pair can independently be an edge or not.

Step 2: Multiplying these two choices for every pair gives 2^[n(n−1)/2], D. Connectedness is not imposed, so no edge subsets are excluded.

This is the conventional simple loop-free graph model. Permitting loops adds n binary choices, and permitting unrestricted parallel edges would remove this finite count. The fixed labels mean we are not quotienting by graph isomorphism.

Original paper, page 6

Descriptive
Report issue

Degree in the two-toggle graph

Graph Theory

Question 6(a), GATE 2000: G has one vertex for each of the 2ⁿ subsets of S={1,…,n}. Vertices A,B are adjacent iff |A△B|=2, where △ is symmetric difference.

Task: Find the common degree of each vertex.
Question 6(a), GATE 2000: G has one vertex for each of the 2ⁿ subsets of S={1,…,n}. Vertices A,B are adjacent iff |A△B|=2, where △ is symmetric difference.

Task: Find the common degree of each vertex.
Tap to enlarge
Shared context

G has one vertex for each of the 2ⁿ subsets of S={1,…,n}. Vertices A,B are adjacent iff |A△B|=2, where △ is symmetric difference.

Answer & solution

Answer: C(n,2)=n(n−1)/2. (no official key was published)

1. Fix any vertex A. A neighbor must be obtained by toggling membership of exactly two distinct elements of S.

2. For every unordered pair P⊆S, |P|=2, the vertex B=A△P is a neighbor. Different pairs give different B because A△B uniquely recovers P.

3. This is a bijection between neighbors and two-element subsets of S. Thus every vertex has degree C(n,2), independently of |A|. For n=0 or 1 there are no edges.

Original paper, page 7

1 mark · MCQ
Report issue

Fewest edges in a connected cyclic graph

Graph Theory

Question 1.25, GATE 1995: What is the minimum number of edges in a connected graph on n vertices containing a cycle?
Tap to enlarge
Your answer
Answer & solution

Answer: B: n (no official key was published)

Every connected graph contains a spanning tree with n−1 edges. A tree has no cycle, so at least one further edge is necessary. Adding one non-tree edge to a spanning tree creates a cycle while retaining connectivity, attaining n edges. Thus n is both a lower bound and achievable for a simple graph with n≥3. If “cycle graph” means precisely the graph Cn, it likewise has exactly n edges.

Original paper, page 3

5 marks · Descriptive
Report issue

Even number of odd-degree vertices

Graph Theory

Question 24, GATE 1995: Prove that a finite undirected graph has an even number of vertices of odd degree.
Tap to enlarge
Answer & solution

Answer: The degree sum equals 2|E|, so the number of its odd summands is even. (no official key was published)

Each undirected edge contributes one incident end at each endpoint. Counting all incident ends first by edges and then by vertices yields the handshaking identity ∑v deg(v)=2|E|, an even integer. If loops are allowed, a loop contributes 2 to the degree of its vertex, so the same identity remains true under that standard convention.

Partition the vertices into those with even degree and those with odd degree. The sum over the even-degree vertices is even. Subtracting it from the even total shows that the sum over the odd-degree vertices is also even. A sum of m odd integers has parity m: write each degree as 2ki+1, so their sum is 2∑ki+m. It can be even only if m is even. Hence the number of odd-degree vertices is even.

The graph need not be connected, and isolated vertices have degree 0 and do not affect the argument. Finiteness ensures that these are ordinary finite sums. The assertion is about undirected degree; for a directed graph, odd outdegrees alone need not occur an even number of times. One must specify the appropriate total-degree convention rather than reuse this proof unaltered.

Original paper, page 8

Report issue

Simple graphs on at most three vertices

Graph Theory

Question 1.6, GATE 1994: How many distinct simple graphs have up to three nodes, among 15,10,7,9?
Tap to enlarge
Your answer
Answer & solution

Answer: C: 7, for nonempty unlabeled graphs (no official key was published)

Count graph isomorphism classes by vertex count. With one vertex there is one graph. With two vertices there are two: no edge or one edge. With three vertices the possible edge counts 0,1,2,3 each determine one class: empty, one edge plus isolated vertex, a two-edge path, or triangle. Total 1+2+4=7. This uses unlabeled graphs and excludes the zero-vertex graph. Including that graph gives eight, while labeled fixed vertex sets yield 1+2+8=11, so the interpretation must be stated.

Original paper, page 1

Report issue

Edges in a regular graph

Graph Theory

Question 2.5, GATE 1994: A graph has n vertices each of degree d. Fill in its number of edges.
Tap to enlarge
Answer & solution

Answer: nd/2 (no official key was published)

Summing vertex degrees gives nd. Each undirected edge contributes two to that sum, one at each endpoint, so the handshaking lemma yields 2|E|=nd. Therefore |E|=nd/2. In particular nd must be even for such a finite graph to exist. This is the standard undirected interpretation of a regular graph; a directed graph would require stating whether d denotes indegree, outdegree or total degree.

Original paper, page 3

2 marks · MSQ
Report issue

A connected graph with n edges

Graph Theory

Question 8.1, GATE 1993: A simple connected graph has n>2 vertices and n edges. Which hold: no cycles; every single-edge removal disconnects; at least one cycle; every two-edge removal disconnects?
Tap to enlarge
Select all that apply
Answer & solution

Answer: C,D (no official key was published)

A spanning tree uses n−1 edges, leaving one extra edge that creates a cycle, so C holds and A fails. Removing an edge on that cycle leaves the graph connected, refuting B. Removing any two distinct edges leaves only n−2 edges; no graph on n vertices with so few edges can be connected, so D holds. This edge-count argument proves D even if one of the removed edges was already a bridge, without needing to enumerate the graph’s shapes.

Original paper, page 8

Report issue

Maximum planar edges

Graph Theory

Question 1(x), GATE 1992: What is the maximum number of edges of a planar graph with n vertices?
Question 1(x), GATE 1992: What is the maximum number of edges of a planar graph with n vertices?
Tap to enlarge
Answer & solution

Answer: 3n−6 for simple planar graphs with n≥3 (no official key was published)

For a connected simple planar embedding, Euler gives n−m+f=2. Every face boundary has length at least three, while each edge contributes two boundary incidences, so 3f≤2m. Combining gives m≤3n−6, attained by triangulations. Disconnected simple graphs cannot exceed that maximum. Simplicity and n≥3 are necessary qualifications: parallel edges can make edge count unbounded for fixed n, and the small cases n=1, 2 have maxima 0, 1. The familiar formula is therefore a conditional standard answer, not valid for every use of the word graph.

Original paper, page 1

Report issue

Smallest nonplanar vertex count

Graph Theory

Question 2(viii), GATE 1992: Which listed vertex/edge counts describe a nonplanar simple graph with the fewest vertices:9 edges 6 vertices, 6 edges 4 vertices, 10 edges 5 vertices, 9 edges 5 vertices?
Question 2(viii), GATE 1992: Which listed vertex/edge counts describe a nonplanar simple graph with the fewest vertices:9 edges 6 vertices, 6 edges 4 vertices, 10 edges 5 vertices, 9 edges 5 vertices?
Tap to enlarge
Select all that apply
Answer & solution

Answer: C: K5 with 10 edges and 5 vertices (no official key was published)

Every simple graph on at most four vertices is a subgraph of planar K4, so nonplanarity requires at least five vertices. On five vertices, K5 is nonplanar and has 10 edges. Removing any edge from K5 gives a planar graph, so a five-vertex graph with only nine edges does not supply the required example. K3, 3 has nine edges but six vertices, so it minimizes a different quantity. The question asks for fewest vertices, not fewest edges.

Original paper, page 2

2 marks · Other
Report issue

Most edges with a fixed component count

Graph Theory

Question 1(xv), GATE 1991: Find the maximum number of edges in an undirected graph with n vertices and k components.
Question 1(xv), GATE 1991: Find the maximum number of edges in an undirected graph with n vertices and k components.
Tap to enlarge
Answer & solution

Answer: (n−k+1)(n−k)/2 for a simple graph (no official key was published)

For component sizes n1, …, nk, simplicity permits at most Σ C(ni, 2) edges, attained by making each component complete. If two component sizes a≥b≥2 occur, transferring a vertex from the smaller to the larger changes the sum by a−b+1>0. Repeating leaves one component of size n−k+1 and k−1 isolated vertices, giving C(n−k+1, 2). This assumes 1≤k≤n and a simple loopless graph. If parallel edges are unrestricted, no finite maximum follows merely from n and k.

Original paper, page 2

5 marks · Descriptive
Report issue

Repeated vertex degrees in a finite graph

Graph Theory

Question 16(b), GATE 1991: Prove that a finite undirected simple graph with at least two vertices has two vertices of equal degree.
Tap to enlarge
Answer & solution

Answer: Two vertices must share a degree, since degrees 0 and n−1 cannot both occur. (no official key was published)

Let the graph have n≥2 vertices. In a simple undirected graph each degree is an integer in {0,1,…,n−1}. Merely counting n possible degrees and n vertices does not yet prove a repetition; the key is that the extreme values cannot coexist.

If a vertex has degree n−1, it is adjacent to every other vertex, so every other vertex has degree at least 1. Thus no degree-0 vertex exists. Conversely, if an isolated vertex exists, no vertex can be adjacent to all n−1 others, so degree n−1 is absent.

There are therefore at most n−1 possible degrees in the graph: if there is an isolated vertex, use {0,…,n−2}; if not, use {1,…,n−1}. Assigning n vertices to at most n−1 degree values forces two into the same value by the pigeonhole principle.

The simple-graph convention matters. If parallel edges or loops were allowed, the bound n−1 would fail and so can the conclusion. For example, on three vertices put one edge between a and b, two parallel edges between a and c, and none between b and c. The degrees are 3,1,2, all distinct. The source's unqualified graph is interpreted in the standard simple-graph setting.

Original paper, page 8