public void dumpPAGForMethod(String fName,String cName,String mName) throws FileNotFoundException {
  FileOutputStream fos=new FileOutputStream(new File(fName));
  PrintStream ps=new PrintStream(fos);
  ps.println("digraph G {");
  ps.println("\trankdir=LR;");
  dumpLocalPAG(cName,mName,ps);
  ps.print("}");
  try {
    fos.close();
  }
 catch (  IOException e) {
  }
  ps.close();
}

public void dumpPAGForMethod ( String fName , String cName , String mName ) throws FileNotFoundException { FileOutputStream fos = new FileOutputStream ( new File ( fName ) ) ; PrintStream ps = new PrintStream ( fos ) ; ps . println ( "digraph G {" ) ; ps . println ( "\trankdir=LR;" ) ; dumpLocalPAG ( cName , mName , ps ) ; ps . print ( "}" ) ; try { fos . close ( ) ; } catch ( IOException e ) { } ps . close ( ) ; }
dump the pag for some method in the program in dot format
