Update graph.php

Fixed functionality for single negatives.