Finalize graphs