something something temporary variables?
collapse a resistor with another resistor. primitive collapse_graph().