added new data structure to ...graph.c