public boolean addCall(String sourceClass,String sourceMethod,String targetClass,String targetMethod){
  CallGraphEntry from=new CallGraphEntry(targetClass,targetMethod);
  CallGraphEntry to=new CallGraphEntry(sourceClass,sourceMethod);
  if (sourceClass.equals(className))   cutNodes.add(to);
  if (!graph.containsEdge(from,to)) {
    graph.addEdge(from,to);
    callGraphClasses.add(targetClass.replaceAll("/","."));
    return true;
  }
  return false;
}

public boolean addCall ( String sourceClass , String sourceMethod , String targetClass , String targetMethod ) { CallGraphEntry from = new CallGraphEntry ( targetClass , targetMethod ) ; CallGraphEntry to = new CallGraphEntry ( sourceClass , sourceMethod ) ; if ( sourceClass . equals ( className ) ) cutNodes . add ( to ) ; if ( ! graph . containsEdge ( from , to ) ) { graph . addEdge ( from , to ) ; callGraphClasses . add ( targetClass . replaceAll ( "/" , "." ) ) ; return true ; } return false ; }
add call to the call graph
