#! /bin/csh -f # Last edited on 2001-01-03 23:49:32 by stolfi set usage = "$0 GRAPH PROGRAM SECONDS" # runs GraphDraw in "programmed" mode on the given graph. if ( $#argv != 3 ) then echo "usage = ${usage}"; exit 1 endif set graph = "$1"; shift; set prog = "$1"; shift; set seconds = "$1"; shift; if ( $#argv != 0 ) then echo "usage: ${usage}"; exit 1 endif set dir = "${graph}-${prog}-f" if ( ! ( -d ${dir} ) ) mkdir ${dir} /bin/rm -f ${dir}/????.{eps,his} /bin/rm -f ${dir}/score-?.eps if ( -r ${graph}.parms ) then source ${graph}.parms else echo "no ${graph}.parms, using defaults..." set maxxng = 50 set maxasc = 50 set maxbnd = 200 set maxlen = 500 endif ../../${M3PLATFORM}/GraphDraw \ -input ${graph}.grf \ -outDir ${dir} \ -maxTime ${seconds} \ -maxScore ${maxxng} ${maxasc} ${maxbnd} ${maxlen} \ -plotProgress -scale 0.80 \ -mode f \ `cat ${prog}.prg | egrep -v '^[#]'`