Update graph.c

graph.h has been changed