Effective Resistance between an Arbitrary Pair of Nodes in a Graph

The Demonstration finds the effective resistance between arbitrary pairs of nodes in an electrical resistor circuit. Each edge in the circuit can be thought of as having one unit of resistance. The grid shows how the effective resistance between any two pairs of nodes (labeled) in the circuit fluctuates, depending on the number of resistances (or links) between the pair of nodes.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


From the adjacency matrix (gmat in the code) of a graph with nodes, the matrix is constructed:
Denote the nodes between which the effective resistance is computed as and . The matrix is rearranged into a block structure: , where is a matrix carrying the resistance information for the nodes and , is a matrix, and is a matrix. By completion of squares, the effective resistance between nodes and is computed after integrating out the information of the other vertices to get the matrix . The inverse of an off-diagonal element in this matrix gives the effective resistance between a pair of nodes. You can think of the off-diagonal element as the cross term between nodes and , which is the inverse of the effective resistance after the other vertices are integrated out.
[1] Wikipedia. "Resistance Distance." (May 24, 2016) en.wikipedia.org/wiki/Resistance_distance.
[2] Wikipedia. "Completing the Squares." (May 24, 2016) en.wikipedia.org/wiki/Completing_the_square.
[3] F. Y. Wu, "Theory of Resistor Networks: The Two-Point Resistance," Journal of Physics A: Mathematical and General, 37(26), 2004, pp. 6653–6673. doi:10.1088/0305-4470/37/26/004.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+