Analysis of resistive circuits