in the bellow diagram the red box could represent a wire, a bulb, a resistor or a diode. 

By changing the resistance of the variable resistor the graphs are reproduced.