scripts/rename-graphs
changeset 2611 b526b87d8c2f
parent 2558 e70b52a8cd57
equal deleted inserted replaced
4:2e277b8c4f44 5:ff09c2169b29
     4 
     4 
     5 cat $1 | \
     5 cat $1 | \
     6 sed -e "s/bipartite undirected graph/bipartite graph/g"\
     6 sed -e "s/bipartite undirected graph/bipartite graph/g"\
     7 	-e "s/undirected graph/_gr_aph_label_/g"\
     7 	-e "s/undirected graph/_gr_aph_label_/g"\
     8 	-e "s/undirected edge/_ed_ge_label_/g"\
     8 	-e "s/undirected edge/_ed_ge_label_/g"\
     9 	-e "s/graph_/_gr_aph_label__"\
     9 	-e "s/graph_/_gr_aph_label__/g"\
    10 	-e "s/_graph/__gr_aph_label_"\
    10 	-e "s/_graph/__gr_aph_label_/g"\
    11 	-e "s/UGraph/_Gr_aph_label_/g"\
    11 	-e "s/UGraph/_Gr_aph_label_/g"\
    12 	-e "s/uGraph/_gr_aph_label_/g"\
    12 	-e "s/uGraph/_gr_aph_label_/g"\
    13 	-e "s/ugraph/_gr_aph_label_/g"\
    13 	-e "s/ugraph/_gr_aph_label_/g"\
    14 	-e "s/Graph/_Digr_aph_label_/g"\
    14 	-e "s/Graph/_Digr_aph_label_/g"\
    15 	-e "s/graph/_digr_aph_label_/g"\
    15 	-e "s/graph/_digr_aph_label_/g"\
    16 	-e "s/UEdge/_Ed_ge_label_/g"\
    16 	-e "s/UEdge/_Ed_ge_label_/g"\
    17 	-e "s/uEdge/_ed_ge_label_/g"\
    17 	-e "s/uEdge/_ed_ge_label_/g"\
    18 	-e "s/uedge/_ed_ge_label_/g"\
    18 	-e "s/uedge/_ed_ge_label_/g"\
       
    19 	-e "s/IncEdgeIt/_In_cEd_geIt_label_/g"\
    19 	-e "s/Edge/_Ar_c_label_/g"\
    20 	-e "s/Edge/_Ar_c_label_/g"\
    20 	-e "s/edge/_ar_c_label_/g"\
    21 	-e "s/edge/_ar_c_label_/g"\
    21 	-e "s/ANode/_Re_d_label_/g"\
    22 	-e "s/ANode/_Re_d_label_/g"\
    22 	-e "s/BNode/_Blu_e_label_/g"\
    23 	-e "s/BNode/_Blu_e_label_/g"\
    23 	-e "s/A-Node/_Re_d_label_/g"\
    24 	-e "s/A-Node/_Re_d_label_/g"\
    32 	-e "s/_gr_aph_label_/graph/g"\
    33 	-e "s/_gr_aph_label_/graph/g"\
    33 	-e "s/_Ar_c_label_/Arc/g"\
    34 	-e "s/_Ar_c_label_/Arc/g"\
    34 	-e "s/_ar_c_label_/arc/g"\
    35 	-e "s/_ar_c_label_/arc/g"\
    35 	-e "s/_Ed_ge_label_/Edge/g"\
    36 	-e "s/_Ed_ge_label_/Edge/g"\
    36 	-e "s/_ed_ge_label_/edge/g"\
    37 	-e "s/_ed_ge_label_/edge/g"\
       
    38 	-e "s/_In_cEd_geIt_label_/IncEdgeIt/g"\
    37 	-e "s/_Re_d_label_/Red/g"\
    39 	-e "s/_Re_d_label_/Red/g"\
    38 	-e "s/_Blu_e_label_/Blue/g"\
    40 	-e "s/_Blu_e_label_/Blue/g"\
    39 	-e "s/_re_d_label_/red/g"\
    41 	-e "s/_re_d_label_/red/g"\
    40 	-e "s/_blu_e_label_/blue/g"\
    42 	-e "s/_blu_e_label_/blue/g"\
    41 > rename_graphs_temp_file_$ID.tmp
    43 > rename_graphs_temp_file_$ID.tmp