add a dump method to CallGraph