Update graph.php

Fixed fundamental doubling of heatinput error