Rewrite graf.c.