deba@2531: #!/bin/bash deba@2531: deba@2531: ID=$RANDOM deba@2531: deba@2531: cat $1 | \ kpeter@2536: sed -e "s/bipartite undirected graph/bipartite graph/g"\ kpeter@2552: -e "s/undirected graph/_gr_aph_label_/g"\ kpeter@2532: -e "s/undirected edge/_ed_ge_label_/g"\ deba@2531: -e "s/UGraph/_Gr_aph_label_/g"\ kpeter@2532: -e "s/uGraph/_gr_aph_label_/g"\ kpeter@2532: -e "s/ugraph/_gr_aph_label_/g"\ kpeter@2532: -e "s/Graph/_Digr_aph_label_/g"\ deba@2531: -e "s/graph/_digr_aph_label_/g"\ deba@2531: -e "s/UEdge/_Ed_ge_label_/g"\ kpeter@2532: -e "s/uEdge/_ed_ge_label_/g"\ deba@2531: -e "s/uedge/_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"\ kpeter@2532: -e "s/B-Node/_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/aNode/_re_d_label_/g"\ deba@2531: -e "s/bNode/_blu_e_label_/g"\ kpeter@2532: -e "s/_Digr_aph_label_/Digraph/g"\ kpeter@2532: -e "s/_digr_aph_label_/digraph/g"\ kpeter@2532: -e "s/_Gr_aph_label_/Graph/g"\ kpeter@2532: -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