Network Graph Theory: GATE ECE practice questions with solutions

This topic covers trees and links, fundamental loops and cut-sets, incidence and tie-set matrices, and counting trees. The 15 original questions follow the GATE EC format: 7 MCQ, 3 MSQ and 5 NAT, from 6 easy, 7 medium and 2 hard.

Three ideas to know:

  • Fundamental loops = links = B−N+1B - N + 1.
  • A tree touches every node and contains no loop.
  • Trees containing a branch correspond to trees of the graph after merging that branch's end nodes.

It helps GATE EC and ECE students revising Networks for the exam or a semester test. Helpful background: Definition of tree and Incidence matrix. Start with the 6 easy questions, then work up to the 2 hard ones.

Q.1

EasyMCQ1 mark

A connected graph has 6 nodes and 11 branches. For any chosen tree, the number of fundamental loops is

  1. Option A: 5
  2. Option B: 11
  3. Option C: 6
  4. Option D: 17
Show answer and solutionHide answer and solution

Answer: (C)

Key idea: Fundamental loops = links = B - N + 1.

A tree of a connected graph with N nodes has N-1 = 5 twigs. The remaining branches are links: 11 - 5 = 6. Adding one link to the tree closes exactly one loop, so the number of fundamental loops equals the number of links, which is 6.

Common mistake: Taking the number of twigs, N-1 = 5, as the number of loops.

You need: Definition of tree, twig and link; counting nodes and branches

Q.2

EasyMCQ1 mark

The number of different trees that can be drawn for a complete graph with 4 nodes (every pair of nodes joined by exactly one branch) is

Complete graph on four nodesFour nodes 1, 2, 3, 4. Six undirected branches, one between every pair of nodes: 1–2, 2–3, 3–1, 1–4, 2–4, 3–4.1234
  1. Option A: 4
  2. Option B: 12
  3. Option C: 20
  4. Option D: 16
Show answer and solutionHide answer and solution

Answer: (D)

Key idea: A tree is a set of N-1 branches that connects all nodes without forming a loop.

A tree has N-1 = 3 branches, so there are \binom{6}{3} = 20 ways to choose 3 of the 6 branches. A 3-branch set fails to be a tree only if it forms a loop. The triangles 1-2-3, 1-2-4, 1-3-4 and 2-3-4 are the 4 loops of 3 branches. So 20 - 4 = 16. Cayley's formula gives the same result: n^{n-2} = 4^2 = 16.

Common mistake: Counting every 3-branch set as a tree, giving 20.

You need: Definition of tree; combinations

Q.3

EasyMCQ1 mark

A connected directed graph has 7 nodes and 10 branches. The rank of its complete incidence matrix AcA_c (7 rows, 10 columns) is

  1. Option A: 6
  2. Option B: 7
  3. Option C: 10
  4. Option D: 4
Show answer and solutionHide answer and solution

Answer: (A)

Key idea: Rank of the complete incidence matrix of a connected graph is N-1.

Every column of A_c has one +1 and one −1, so the sum of all 7 rows is the zero row. The rows are therefore linearly dependent, and any one row can be deleted without losing information. The rank is N-1 = 6. This is also the number of twigs in any tree.

Common mistake: Answering N = 7 because the matrix has 7 rows.

You need: Incidence matrix; matrix rank

Q.4

MediumMSQ2 marks

For graph G4 shown in the figure, which of the following sets of branches form a tree?

Graph G4Graph G4: nodes 1, 2, 3, 4. Directed branches: a from 1 to 2, b from 2 to 3, c from 3 to 1, d from 1 to 4, e from 2 to 4, f from 3 to 4.abcdef1234

One or more options are correct.

  1. Option A: {a,b,c}\{a, b, c\}
  2. Option B: {a,b,d}\{a, b, d\}
  3. Option C: {a,d,e}\{a, d, e\}
  4. Option D: {c,e,f}\{c, e, f\}
Show answer and solutionHide answer and solution

Answer: (B) and (D)

Key idea: A tree touches every node and contains no loop.

A tree needs 3 branches that touch all 4 nodes and form no loop.

(A) a, b, c join 1-2-3-1. This is a loop, and node 4 is not reached. Not a tree.

(B) a joins 1-2, b joins 2-3, d joins 1-4. All four nodes are connected with no loop. Tree.

(C) a, d, e join 1-2, 1-4 and 2-4. This is a loop, and node 3 is not reached. Not a tree.

(D) c joins 3-1, f joins 3-4, e joins 2-4. This gives the path 1-3-4-2, which touches all nodes with no loop. Tree.

Common mistake: Choosing any 3 branches, or forgetting that a loop leaves one node unconnected.

You need: Tree and loop definitions; reading a directed graph

Q.5

MediumMCQ2 marks

For graph G4 with tree {d,e,f}\{d, e, f\}, the fundamental loop of link bb is traced in the direction of bb. In the fundamental tie-set matrix, the entries of the row for link bb in the columns (d,e,f)(d, e, f) are

Graph G4 with the tree d, e, fGraph G4: nodes 1, 2, 3, 4. Directed branches: a from 1 to 2, b from 2 to 3, c from 3 to 1, d from 1 to 4, e from 2 to 4, f from 3 to 4. Tree branches are d, e, f (a star centred on node 4). Links are a, b, c.abcdef1234tree: thicklinks: dashed
  1. Option A: [+1, −1, 0][+1,\ -1,\ 0]
  2. Option B: [0, +1, −1][0,\ +1,\ -1]
  3. Option C: [−1, 0, +1][-1,\ 0,\ +1]
  4. Option D: [0, −1, +1][0,\ -1,\ +1]
Show answer and solutionHide answer and solution

Answer: (D)

Key idea: The fundamental loop of a link uses only that link and the tree path between its end nodes.

Link b goes from node 2 to node 3. The tree path from 3 back to 2 is 3→4 through f and then 4→2 through e.

Traversing the loop in the direction of b: f is traversed along its arrow (+1), e is traversed against its arrow (−1), and d is not in the loop (0). The row is [0, -1, +1].

Check: KVL gives v_b + v_f - v_e = 0. With v_b = v_2 - v_3, v_f = v_3 - v_4, v_e = v_2 - v_4, the sum is 0.

Common mistake: Giving the signs of e and f the wrong way round, which gives (B).

You need: Fundamental loops; branch orientation and KVL

Q.6

MediumMCQ2 marks

For graph G4 with tree {d,e,f}\{d, e, f\}, the fundamental cut-set of twig ee is oriented along ee. Applying KCL to this cut-set, the twig current iei_e in terms of the link currents ia,ib,ici_a, i_b, i_c is

Graph G4 with the tree d, e, fGraph G4: nodes 1, 2, 3, 4. Directed branches: a from 1 to 2, b from 2 to 3, c from 3 to 1, d from 1 to 4, e from 2 to 4, f from 3 to 4. Tree branches are d, e, f. Branch currents are positive along the arrows.abcdef1234tree: thicklinks: dashed
  1. Option A: ie=ib−iai_e = i_b - i_a
  2. Option B: ie=ia+ibi_e = i_a + i_b
  3. Option C: ie=ia−ibi_e = i_a - i_b
  4. Option D: ie=−(ia+ib)i_e = -(i_a + i_b)
Show answer and solutionHide answer and solution

Answer: (C)

Key idea: A fundamental cut-set contains one twig and the links that cross the same cut. KCL applies to it.

Removing twig e from the tree separates node 2 from the rest, so the fundamental cut-set is the set of branches at node 2: a, b and e. Branch a enters node 2. Branches b and e leave node 2. The cut is oriented along e, meaning leaving node 2.

KCL gives: current leaving = current entering, so i_b + i_e = i_a. Hence i_e = i_a - i_b. Link c is not at node 2 and does not appear.

Common mistake: Ignoring branch directions and writing i_a + i_b.

You need: Cut-set definition; KCL; branch orientation

Q.7

EasyNAT1 mark

A connected planar graph has 9 nodes and 15 branches. The number of linearly independent KVL equations that can be written for this graph is ______.

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 7

Key idea: Independent KVL equations = B - N + 1.

The number of independent loop equations equals the number of links: B - N + 1 = 15 - 9 + 1 = 7.

Second check: for a planar graph, Euler's formula N - B + F = 2 gives F = 8 faces. One face is the outer region, so there are 8 - 1 = 7 meshes.

Common mistake: Using N-1 = 8 (the KCL count) or B - N = 6.

You need: Number of tree branches and links; Euler's formula

Q.8

EasyMCQ1 mark

Which one of the following graphs is non-planar?

  1. Option A: The complete graph on 4 nodes
  2. Option B: A 6-node ring with one extra branch joining two opposite nodes
  3. Option C: The complete graph on 5 nodes
  4. Option D: Two nodes each joined by a single branch to each of three other nodes (6 branches in total)
Show answer and solutionHide answer and solution

Answer: (C)

Key idea: A graph is planar only if it can be drawn on a plane with no branches crossing.

(A) can be drawn as a triangle with a fourth node inside joined to all three corners, with no crossings. (B) is the ring with the extra branch drawn across the inside. (D) has two "hub" nodes with three paths between them, which can be drawn without crossings. The 5-node complete graph has 10 branches. A planar graph with no parallel branches needs B \le 3N - 6 = 9, so 10 branches cannot be drawn without a crossing.

Common mistake: Calling K4 non-planar because its diagram usually has a visible crossing in the square-with-diagonals drawing.

You need: Planar graph definition; counting branches

Q.9

EasyMSQ1 mark

AcA_c is the complete incidence matrix of a connected directed graph with NN nodes and BB branches (no self-loops). Which of the following statements are true?

One or more options are correct.

  1. Option A: Each column of AcA_c contains exactly one +1 and one −1
  2. Option B: The rank of AcA_c is N−1N-1
  3. Option C: The sum of all rows of AcA_c is the zero vector
  4. Option D: Any N−1N-1 columns of AcA_c are linearly independent
Show answer and solutionHide answer and solution

Answer: (A), (B) and (C)

Key idea: Independent columns of the incidence matrix correspond to branches without a loop.

Each branch leaves exactly one node (+1) and enters exactly one node (−1), so (A) is true. Because of this, the rows sum to zero, so (C) is true, and the rank drops to N-1 for a connected graph, so (B) is true.

For (D): N-1 columns are independent only if the branches form a tree. If those branches contain a loop, the columns are dependent. So (D) is false.

Common mistake: Believing any N-1 columns work, when that holds only for tree branches.

You need: Incidence matrix; linear independence

Q.10

MediumNAT2 marks

The reduced incidence matrix AA of a graph with 4 nodes (node 0 is the reference) is given below. Rows are nodes 1, 2, 3; columns are branches p, q, r, s, t. The number of different trees of this graph is ______.

A=[10010−1100−10−1100]A=\begin{bmatrix}1&0&0&1&0\\-1&1&0&0&-1\\0&-1&1&0&0\end{bmatrix}
The graph described by the incidence matrixMatrix given in the question. The graph it describes: p from node 1 to 2, q from 2 to 3, r from 3 to 0, s from 1 to 0, t from 0 to 2.pqrst1230

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 8

Key idea: Number of trees = \det(AA^T) for the reduced incidence matrix.

The number of trees equals \det(AA^T).

AA^T: the diagonal entries are the row self-products, 2, 3, 2. The off-diagonal products are r_1\cdot r_2 = -1, r_1\cdot r_3 = 0, r_2\cdot r_3 = -1.

AA^T=\begin{bmatrix}2&-1&0\\-1&3&-1\\0&-1&2\end{bmatrix}
\det = 2(6-1) - (-1)(-2-0) = 10 - 2 = 8
\begin{aligned} \det &= 2(6-1) \\ &\quad - (-1)(-2-0) \\ &= 10 - 2 \\ &= 8 \end{aligned}

Second check: the graph is the 4-cycle 0-1-2-3-0 (branches s, p, q, r) plus the branch t joining 0 and 2. There are \binom{5}{3} = 10 three-branch sets. Two of them are loops, {s, p, t} and {t, q, r}. So 10 - 2 = 8 trees.

Common mistake: Computing A^TA (a 5×5 matrix, singular, determinant 0), or counting all 10 three-branch sets.

You need: Reduced incidence matrix; determinants; tree counting

Q.11

MediumMCQ2 marks

For a graph with tree branches t1,t2,t3t_1, t_2, t_3 and links l1,l2,l3l_1, l_2, l_3, the fundamental cut-set matrix with columns ordered (t1,t2,t3,l1,l2,l3)(t_1, t_2, t_3, l_1, l_2, l_3) is

Qf=[1001−1001001−1001−101]Q_f=\begin{bmatrix}1&0&0&1&-1&0\\0&1&0&0&1&-1\\0&0&1&-1&0&1\end{bmatrix}

Loops are oriented along their link. The row of the fundamental tie-set matrix BfB_f for link l2l_2, in the twig columns (t1,t2,t3)(t_1, t_2, t_3), is

  1. Option A: [ 0, 1, −1 ][\,0,\ 1,\ -1\,]
  2. Option B: [ −1, 1, 0 ][\,-1,\ 1,\ 0\,]
  3. Option C: [ 1, −1, 0 ][\,1,\ -1,\ 0\,]
  4. Option D: [ 1, 0, −1 ][\,1,\ 0,\ -1\,]
Show answer and solutionHide answer and solution

Answer: (C)

Key idea: B_f = [\,-Q_l^T \mid U\,] when Q_f = [\,U \mid Q_l\,].

Write Q_f = [\,U \mid Q_l\,]. Then B_f = [\,-Q_l^{T} \mid U\,], so the twig part of the l_2 row is minus the l_2 column of Q_l.

The l_2 column of Q_l is (-1, 1, 0)^T. Negating gives [1, -1, 0].

Check: the full row is [1,-1,0\,|\,0,1,0]. Its dot product with each row of Q_f is 0 (for example 1\cdot1 + 1\cdot(-1) = 0 with the first row). This confirms B_f Q_f^T = 0.

Common mistake: Forgetting the minus sign and answering [-1, 1, 0].

You need: Tie-set and cut-set matrices; matrix transpose

Q.12

MediumMSQ2 marks

For graph G4 shown in the figure, which of the following sets of branches are cut-sets?

Graph G4Graph G4: nodes 1, 2, 3, 4. Directed branches: a from 1 to 2, b from 2 to 3, c from 3 to 1, d from 1 to 4, e from 2 to 4, f from 3 to 4.abcdef1234

One or more options are correct.

  1. Option A: {a,c,d}\{a, c, d\}
  2. Option B: {a,b,c}\{a, b, c\}
  3. Option C: {b,c,d,e}\{b, c, d, e\}
  4. Option D: {a,d,e}\{a, d, e\}
Show answer and solutionHide answer and solution

Answer: (A) and (C)

Key idea: A cut-set separates the nodes into two groups, and every branch of the set crosses between the groups.

A cut-set is a minimal set of branches whose removal disconnects the graph.

(A) Removing a, c, d isolates node 1, the three branches at that node. Putting any one back reconnects node 1. Cut-set.

(B) Removing a, b, c leaves d, e, f, which form a star at node 4 and still connect all nodes. Not a cut-set (a, b, c is a loop).

(C) Removing b, c, d, e splits the nodes into {1, 2} (still joined by a) and {3, 4} (still joined by f). Returning any one of the four reconnects the two parts. Cut-set.

(D) Removing a, d, e leaves b, c, f, which form a star at node 3 and still connect all nodes. Not a cut-set (a, d, e is a loop).

Common mistake: Confusing a loop (e.g. {a, b, c}) with a cut-set.

You need: Cut-set definition; connectivity of graphs

Q.13

MediumNAT1 mark

In graph G4, the branch voltages measured along the branch arrows are vd=5 Vv_d = 5\ \text{V}, ve=3 Vv_e = 3\ \text{V} and vf=−2 Vv_f = -2\ \text{V}. The branch voltage vcv_c, in volts, is ______.

Graph G4, with branch voltages measured along the arrowsGraph G4: nodes 1, 2, 3, 4. Directed branches: a from 1 to 2, b from 2 to 3, c from 3 to 1, d from 1 to 4, e from 2 to 4, f from 3 to 4. The voltage of each branch is the potential of its tail node minus the potential of its head node.abcdef1234

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: −7 V

Key idea: Link voltages follow from the tree-branch voltages through the fundamental loops.

Take node 4 as reference (V_4 = 0). Then v_d = V_1 = 5, v_e = V_2 = 3, and v_f = V_3 = -2. Branch c runs from 3 to 1, so v_c = V_3 - V_1 = -2 - 5 = -7\ \text{V}.

Second check, by KVL around the fundamental loop of c (3→1 via c, 1→4 via d, 4→3 against f): v_c + v_d - v_f = 0, so v_c = v_f - v_d = -2 - 5 = -7\ \text{V}.

Common mistake: Getting the sign wrong by using V_1 - V_3 = +7.

You need: KVL; node potentials; branch orientation

Q.14

HardNAT2 marks

Branches a, b, c, d, e, f form the complete graph on 4 nodes (every pair of nodes is joined by one branch), with a joining nodes 1 and 2. The number of trees of this graph that contain branch a is ______.

Complete graph on four nodes, branches a to fFour nodes 1, 2, 3, 4. Six branches: a (1–2), b (2–3), c (3–1), d (1–4), e (2–4), f (3–4).abcdef1234

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 8

Key idea: Trees containing a branch correspond to trees of the graph after merging that branch's end nodes.

The graph has 16 trees in total, each with 3 branches. Together the trees contain 16 \times 3 = 48 branch appearances. By symmetry, the 6 branches appear equally often, so each is in 48/6 = 8 trees.

Second check, by merging nodes 1 and 2 along a. The result has nodes {12}, 3, 4 with branches b, c parallel between {12} and 3, branches d, e parallel between {12} and 4, and f between 3 and 4. A tree here needs 2 of these 5 branches: \binom{5}{2} = 10. The pairs \{b, c\} and \{d, e\} form loops, so 10 - 2 = 8.

Common mistake: Forgetting that the parallel pairs \{b, c\} and \{d, e\} form loops after merging, which gives \binom{5}{2} = 10.

You need: Counting trees; symmetry of complete graphs

Q.15

HardNAT2 marks

A graph has 5 nodes P, Q, X, Y, Z. It has 6 branches: P–X, P–Y, P–Z, Q–X, Q–Y and Q–Z (each of P and Q is joined directly to each of X, Y, Z, and there are no other branches). The number of different trees of this graph is ______.

Two hubs, each joined to three nodesFive nodes. P and Q are the two hub nodes. X, Y, Z are three other nodes. Each of X, Y, Z is joined to both P and Q by one branch. No branch joins P to Q, and none joins X, Y or Z to each other.PQXYZ

Numerical answer: type a number.

Show answer and solutionHide answer and solution

Answer: 12

Key idea: Count 4-branch sets and remove those containing a loop.

A tree has N - 1 = 4 branches, so there are \binom{6}{4} = 15 four-branch sets. A four-branch set fails only if it contains a loop. The only loops are the 4-branch loops P–X–Q–Y–P, P–X–Q–Z–P and P–Y–Q–Z–P. There are 3 of them, each using exactly 4 branches. So 15 - 3 = 12.

Second check by the matrix method. Delete node Q from the Laplacian. The degrees are P: 3, X, Y, Z: 2 each. The reduced matrix is

\begin{bmatrix}3&-1&-1&-1\\-1&2&0&0\\-1&0&2&0\\-1&0&0&2\end{bmatrix}

Its determinant is 2\cdot2\cdot2\times\left(3 - \tfrac{1}{2}-\tfrac{1}{2}-\tfrac{1}{2}\right) = 8 \times 1.5 = 12.

Common mistake: Subtracting only 1 loop (answer 14), or answering 15 by ignoring loops.

You need: Tree counting; loops in a graph; determinants