Update graph.h

Corrected delete of array