[2531] | 1 | #!/bin/bash |
---|
| 2 | |
---|
| 3 | ID=$RANDOM |
---|
| 4 | |
---|
| 5 | cat $1 | \ |
---|
[2536] | 6 | sed -e "s/bipartite undirected graph/bipartite graph/g"\ |
---|
[2552] | 7 | -e "s/undirected graph/_gr_aph_label_/g"\ |
---|
[2532] | 8 | -e "s/undirected edge/_ed_ge_label_/g"\ |
---|
[2531] | 9 | -e "s/UGraph/_Gr_aph_label_/g"\ |
---|
[2532] | 10 | -e "s/uGraph/_gr_aph_label_/g"\ |
---|
| 11 | -e "s/ugraph/_gr_aph_label_/g"\ |
---|
| 12 | -e "s/Graph/_Digr_aph_label_/g"\ |
---|
[2531] | 13 | -e "s/graph/_digr_aph_label_/g"\ |
---|
| 14 | -e "s/UEdge/_Ed_ge_label_/g"\ |
---|
[2532] | 15 | -e "s/uEdge/_ed_ge_label_/g"\ |
---|
[2531] | 16 | -e "s/uedge/_ed_ge_label_/g"\ |
---|
| 17 | -e "s/Edge/_Ar_c_label_/g"\ |
---|
| 18 | -e "s/edge/_ar_c_label_/g"\ |
---|
| 19 | -e "s/ANode/_Re_d_label_/g"\ |
---|
| 20 | -e "s/BNode/_Blu_e_label_/g"\ |
---|
| 21 | -e "s/A-Node/_Re_d_label_/g"\ |
---|
[2532] | 22 | -e "s/B-Node/_Blu_e_label_/g"\ |
---|
[2531] | 23 | -e "s/anode/_re_d_label_/g"\ |
---|
| 24 | -e "s/bnode/_blu_e_label_/g"\ |
---|
| 25 | -e "s/aNode/_re_d_label_/g"\ |
---|
| 26 | -e "s/bNode/_blu_e_label_/g"\ |
---|
[2532] | 27 | -e "s/_Digr_aph_label_/Digraph/g"\ |
---|
| 28 | -e "s/_digr_aph_label_/digraph/g"\ |
---|
| 29 | -e "s/_Gr_aph_label_/Graph/g"\ |
---|
| 30 | -e "s/_gr_aph_label_/graph/g"\ |
---|
[2531] | 31 | -e "s/_Ar_c_label_/Arc/g"\ |
---|
| 32 | -e "s/_ar_c_label_/arc/g"\ |
---|
| 33 | -e "s/_Ed_ge_label_/Edge/g"\ |
---|
| 34 | -e "s/_ed_ge_label_/edge/g"\ |
---|
| 35 | -e "s/_Re_d_label_/Red/g"\ |
---|
| 36 | -e "s/_Blu_e_label_/Blue/g"\ |
---|
| 37 | -e "s/_re_d_label_/red/g"\ |
---|
| 38 | -e "s/_blu_e_label_/blue/g"\ |
---|
| 39 | > rename_graphs_temp_file_$ID.tmp |
---|
| 40 | |
---|
| 41 | mv rename_graphs_temp_file_$ID.tmp $1 |
---|