Diakoptics was explained in terms of algebraic topology by J. Paul Roth.[3][4][5] Roth describes how Kirchhoff's circuit laws in an electrical network with a given impedance matrix or admittance matrix can be solved for currents and voltages by using the circuit topology.