- Timestamp:
- 11/19/13 10:07:16 (11 years ago)
- Branches:
- master
- Children:
- b30c30d
- Parents:
- e0cd003
- git-author:
- Tomasz Obrebski <to@…> (11/19/13 09:55:00)
- git-committer:
- Tomasz Obrebski <obrebski@…> (11/19/13 10:07:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tre/tre
r3b02b04 rb97a556 21 21 $helptext= 22 22 "The program generates trees from the graph output by dgp. dgp must\n"+ 23 "must be run with '- ids' option.\n\n"+23 "must be run with '--info=ds' option.\n\n"+ 24 24 "Command: tre [options]\n\n"+ 25 25 "Options:\n"+ … … 269 269 270 270 if parts[3]==nil || parts[4]==nil || parts[5]==nil 271 $stderr.print "ERR: tre requires dgp be called with '--info 271 $stderr.print "ERR: tre requires dgp be called with '--info=ds' option. Aborting.\n" 272 272 exit 273 273 end … … 280 280 $arcs |= parts[2].split(',').map{ |a| case a 281 281 when /\-\-(\w+)-(\d+)\((\d+)~(\d+)\)/ 282 [i, $2.to_i, $1, $3.to_i, $4.to_i] 282 # [i, $2.to_i, $1, $3.to_i, $4.to_i] 283 [i, $2.to_i, $1, 0, 0] 283 284 when /\+\+(\w+)-(\d+)\((\d+)~(\d+)\)/ 284 [$2.to_i, i, $1, $3.to_i, $4.to_i] 285 # [$2.to_i, i, $1, $3.to_i, $4.to_i] 286 [$2.to_i, i, $1, 0, 0] 285 287 end } 286 288 $succ |= parts[3][1..-2].split(',').map{|x| [x.to_i,i]}
Note: See TracChangeset
for help on using the changeset viewer.