clean up fgraph