Update graph.php