Changed the name of the graph destructor to destroy from free because free is a reserved word in C