add graph.c