Interview questions

Graph Theory Network Analysis Interview Questions

Graph theory-based network analysis questions are asked in GATE-oriented interviews and technical rounds at core electrical companies like L&T, ABB, and Siemens, as well as in campus placements at TCS and Wipro for EEE students. EI students encounter these in process instrumentation network contexts. These questions typically appear in the second technical round, often alongside KVL, KCL, and network theorems.

EEE, ECE, EI

Interview questions & answers

Q1. What is a graph in the context of electrical network analysis?

In network analysis, a graph is a representation of an electrical circuit where nodes (vertices) correspond to circuit junctions and branches (edges) correspond to circuit elements like resistors, inductors, or capacitors. A simple RC ladder network with 4 nodes and 5 elements is represented as a graph with 4 vertices and 5 edges. This abstraction separates the topological structure of the circuit from the element values, enabling systematic KVL and KCL analysis.

Follow-up: What is the difference between a directed graph and an undirected graph in circuit analysis?

Q2. What are branches, nodes, and loops in network graph theory?

Branches are the individual elements (edges) of the circuit graph, nodes are the junction points (vertices), and loops are any closed paths in the graph. In a Wheatstone bridge circuit, there are 4 nodes, 6 branches (4 arms + 1 galvanometer + 1 battery), and multiple loops — the number of independent loops equals the number of mesh equations required. Correctly identifying these is the first step in writing KVL equations systematically.

Follow-up: How do you identify independent loops in a complex circuit graph?

Q3. What is a tree in graph theory and what is its significance in network analysis?

A tree is a connected subgraph that includes all nodes of the circuit but contains no loops, and for a graph with N nodes, a tree has exactly N−1 branches. For a 5-node circuit, the tree has 4 branches; these tree branches are called twigs and carry no independent mesh currents. The significance is that the remaining branches (co-tree links) are exactly equal to the number of independent KVL equations (loops), which equals B − (N−1) for a connected graph.

Follow-up: For a circuit with 6 nodes and 10 branches, how many independent KVL equations and how many independent KCL equations are there?

Q4. What is a co-tree or link in network analysis?

A co-tree consists of the branches not included in the spanning tree — these are called links or chords, and each link added to the tree creates exactly one fundamental loop (mesh). For a bridge circuit with 4 nodes (N=4) and 6 branches (B=6), the tree has N−1=3 branches and the co-tree has B−(N−1)=3 links, giving 3 independent mesh equations. Each link current is an independent variable in mesh analysis.

Follow-up: What is a fundamental cut-set and how does it relate to the tree structure?

Q5. How do you determine the number of independent KVL and KCL equations for a network?

For a connected network with N nodes and B branches, the number of independent KCL equations is N−1 (one node is the reference) and the number of independent KVL equations is B−(N−1) = B−N+1. A ladder network with 4 nodes and 6 branches gives 3 independent KCL equations and 3 independent KVL equations — together, these 6 equations are sufficient to solve for all 6 branch currents. This is the foundation of mesh and nodal analysis.

Follow-up: What happens to the count of independent equations if the network has two separate disconnected components?

Q6. What is the incidence matrix and how is it used?

The incidence matrix A is a matrix with N rows (nodes) and B columns (branches), where entry A(i,j) = +1 if branch j leaves node i, −1 if it enters, and 0 otherwise. For a 3-node, 3-branch circuit forming a triangle, A is a 3×3 matrix; dropping one row (reference node) gives the reduced incidence matrix. KCL for all nodes is compactly written as A×I_b = 0, where I_b is the branch current vector.

Follow-up: What is the rank of the incidence matrix for a connected graph with N nodes?

Q7. What is the loop matrix (circuit matrix) and how does it encode KVL?

The loop matrix B has one row per independent loop and one column per branch, with entries +1, −1, or 0 depending on whether the branch is in the loop and in which direction. KVL for all independent loops is written as B×V_b = 0, where V_b is the branch voltage vector. For the 3-mesh ladder network analyzed in L&T switchgear design verification, the loop matrix directly gives the mesh equations without manual KVL traversal.

Follow-up: How is the loop matrix related to the co-tree structure (link branches)?

Q8. What is Euler's formula for graphs and how does it apply to planar networks?

For a connected planar graph, Euler's formula states V − E + F = 2, where V is vertices (nodes), E is edges (branches), and F is faces (including the outer infinite face). For a planar circuit with 4 nodes and 6 branches, F = 2 − 4 + 6 = 4, and the number of independent meshes = F − 1 = 3. This confirms the formula B − N + 1 = 3 for mesh analysis, and the formula guarantees that a planar graph can always be analyzed by mesh analysis without introducing dependent loops.

Follow-up: What is a non-planar circuit and can mesh analysis still be applied to it?

Q9. What is the cut-set matrix and how does it relate to nodal analysis?

A cut-set is a minimal set of branches whose removal splits the connected graph into two parts; the cut-set matrix Q has one row per independent cut-set and entries ±1 or 0 based on branch orientation relative to the cut. KCL for independent cut-sets is written as Q×I_b = 0. For a 4-node circuit, the nodal analysis matrix is derived from the fundamental cut-sets based on tree branches, and Q is directly related to the nodal admittance matrix used in SPICE simulation.

Follow-up: How is the nodal admittance matrix (Y-bus) related to the network's graph structure?

Q10. What is a spanning tree and how do you find one for a given network graph?

A spanning tree is any tree (no loops, all nodes connected) constructed from the graph's branches, and is found by selecting N−1 branches that connect all nodes without forming any loop — using BFS or DFS on the graph. For a 5-bus power system network with 7 transmission lines, a spanning tree is selected by DFS starting from the slack bus, and the remaining 3 branches are the links. Different spanning trees give different sets of fundamental loops but the same number of independent equations.

Follow-up: Does the choice of spanning tree affect the final solution of branch currents and voltages?

Q11. How are KVL and KCL formulated in matrix form using graph theory?

KCL for all nodes is expressed as A_r × I_b = I_s, where A_r is the reduced incidence matrix and I_s is the source current vector; KVL is expressed as B × V_b = V_s, where B is the loop matrix and V_s is the source voltage vector. Substituting branch V-I relationships (Ohm's law) into these equations gives the node voltage equations (Y×V = I) and mesh current equations (Z×I = V). This is how SPICE internally formulates the MNA (modified nodal analysis) equations for circuit simulation.

Follow-up: What is modified nodal analysis (MNA) and how does it handle voltage sources in the matrix formulation?

Q12. What is the difference between a mesh and a loop in circuit graph theory?

A loop is any closed path in the circuit graph (independent or not), while a mesh is a loop that contains no other loops inside it — it is the smallest possible loop in a planar graph. For a planar bridge circuit, there are 3 meshes but many more possible loops. KVL is applied to meshes in mesh analysis to obtain the minimum number of independent equations; applying KVL to any arbitrary loop also gives a valid equation but may not be independent.

Follow-up: Can mesh analysis be directly applied to a non-planar circuit? What alternative method is used?

Q13. How is the concept of duality used in network analysis?

Duality establishes a one-to-one correspondence between the elements and topology of two networks such that KVL of one maps to KCL of the other and vice versa. The dual of a series RL circuit is a parallel GC circuit, and mesh analysis of one is equivalent to nodal analysis of the other. For a ladder LC filter used in power electronics at ABB, the dual network is used to quickly derive the dual filter topology (L-section ↔ π-section) without re-deriving the equations.

Follow-up: Not all networks have a dual. What property must a network have for its dual to exist?

Q14. What is the relationship between the rank of the incidence matrix and the number of nodes?

The rank of the complete incidence matrix of a connected graph is N−1, where N is the number of nodes — this is because the sum of all rows is the zero vector (each branch current is counted once in and once out), making one row linearly dependent. This N−1 rank directly gives the number of independent KCL equations available. For a disconnected graph with two components, the rank is N − (number of connected components).

Follow-up: How does the rank theorem confirm that you cannot write N independent KCL equations for an N-node network?

Q15. How is the Thevenin equivalent circuit derived using graph theory concepts?

Thevenin's theorem applied using graph theory identifies a cut-set at the terminals of interest, which divides the network into two subnetworks — the network to be reduced and the load. The open-circuit voltage V_th is found by KVL on the spanning tree of the source subnetwork, and R_th is found by killing independent sources and computing driving-point impedance. For a multi-branch ladder network in a power distribution system, graph-based systematic cut-set analysis finds V_th without guessing which path to analyze.

Follow-up: How does Norton's theorem relate to Thevenin's theorem using graph duality?

Common misconceptions

Misconception: A loop and a mesh are the same thing in circuit analysis.

Correct: A mesh is a loop with no other loop inside it (the smallest loop in a planar graph); a loop is any closed path, which may enclose other loops.

Misconception: The number of KVL equations for a network equals the number of branches.

Correct: The number of independent KVL equations equals B − N + 1 (number of links), which is generally much less than B.

Misconception: Any connected subgraph that includes all nodes of a circuit is a spanning tree.

Correct: A spanning tree must include all nodes and have no loops; a connected subgraph including all nodes can still have loops and would be a spanning subgraph, not a tree.

Misconception: Graph theory is only useful for theoretical analysis and is not used in real circuit simulation tools.

Correct: SPICE and all modern circuit simulators use incidence-matrix-based Modified Nodal Analysis (MNA), which is a direct application of network graph theory.

Quick one-liners

What does a branch represent in a circuit graph?A circuit element (resistor, capacitor, inductor, source) connecting two nodes.
How many branches does a spanning tree have for an N-node graph?N − 1 branches.
What is the number of independent KVL equations for a network with B branches and N nodes?B − N + 1.
What is the rank of the incidence matrix for a connected N-node graph?N − 1.
What is a link (co-tree branch)?A branch not in the spanning tree; each link creates one independent loop.
State Euler's formula for planar graphs.V − E + F = 2, where V = nodes, E = branches, F = faces.
What is the dual of a series RL circuit?A parallel GC (conductance-capacitance) circuit.
What analysis method uses the incidence matrix?Nodal analysis; KCL is written as A_r × I_b = I_s.
What algorithm finds a spanning tree in a network graph?Breadth-first search (BFS) or depth-first search (DFS).

More Network Analysis questions