Clear the data in the Graphlayer and Reset the Graphlayer.
bool graphlayer_reset( GraphLayer & gl )
Returns True if success; and false on failure.
//For this example to run, make the graph layer active in the project
GraphLayer gl = Project.ActiveLayer();
if(graphlayer_reset( gl ))