add a dump() method on callgraph.