deba@2531: #!/bin/bash deba@2531: deba@2531: ID=$RANDOM deba@2531: deba@2531: cat $1 | \ deba@2531: sed -e "s/bipartite undirected graph/_bigr_aph_label_/g"\ deba@2531: -e "s/bipartite graph/_bigr_aph_label_/g"\ deba@2531: -e "s/undirected graph/_gr_aph_label_/g"\ deba@2531: -e "s/UGraph/_Gr_aph_label_/g"\ deba@2531: -e "s/ugraph/_gr_aph_label/g"\ deba@2531: -e "s/BpUgraph/_Bigr_aph_label_/g"\ deba@2531: -e "s/bpugraph/_bigr_aph_label_/g"\ deba@2531: -e "s/graph/_digr_aph_label_/g"\ deba@2531: -e "s/Graph/_Digr_aph_label_/g"\ deba@2531: -e "s/BpUGraph/_Bigr_aph_label_/g"\ deba@2531: -e "s/UGraph/_Gr_aph_label_/g"\ deba@2531: -e "s/_Digr_aph_label_/Digraph/g"\ deba@2531: -e "s/_digr_aph_label_/digraph/g"\ deba@2531: -e "s/UEdge/_Ed_ge_label_/g"\ deba@2531: -e "s/uedge/_ed_ge_label_/g"\ deba@2531: -e "s/uEdge/_ed_ge_label_/g"\ deba@2531: -e "s/undirected edge/_ed_ge_label_/g"\ deba@2531: -e "s/Edge/_Ar_c_label_/g"\ deba@2531: -e "s/edge/_ar_c_label_/g"\ deba@2531: -e "s/ANode/_Re_d_label_/g"\ deba@2531: -e "s/BNode/_Blu_e_label_/g"\ deba@2531: -e "s/A-Node/_Re_d_label_/g"\ deba@2531: -e "s/B-Node/_Re_d_label_/g"\ deba@2531: -e "s/anode/_re_d_label_/g"\ deba@2531: -e "s/bnode/_blu_e_label_/g"\ deba@2531: -e "s/aNode/_re_d_label_/g"\ deba@2531: -e "s/bNode/_blu_e_label_/g"\ deba@2531: -e "s/_Bigr_aph_label_/Bigraph/g"\ deba@2531: -e "s/_bigr_aph_label_/bigraph/g"\ deba@2531: -e "s/_gr_aph_label_/graph/g"\ deba@2531: -e "s/_Gr_aph_label_/Graph/g"\ deba@2531: -e "s/_Bigr_aph_label_/Bigraph/g"\ deba@2531: -e "s/_Gr_aph_label_/Graph/g"\ deba@2531: -e "s/_Ar_c_label_/Arc/g"\ deba@2531: -e "s/_ar_c_label_/arc/g"\ deba@2531: -e "s/_Ed_ge_label_/Edge/g"\ deba@2531: -e "s/_ed_ge_label_/edge/g"\ deba@2531: -e "s/_Re_d_label_/Red/g"\ deba@2531: -e "s/_Blu_e_label_/Blue/g"\ deba@2531: -e "s/_re_d_label_/red/g"\ deba@2531: -e "s/_blu_e_label_/blue/g"\ deba@2531: > rename_graphs_temp_file_$ID.tmp deba@2531: deba@2531: mv rename_graphs_temp_file_$ID.tmp $1