added a method to remove all callgraph edges starting at a specific unit