Add graph.c and graph.h