create pealgraph as input file automatically