add naive FreeGraph function