cleaning graph code base