scripts/rename-graphs
changeset 2545 2bed3e806e1e
parent 2532 06495c0e12f5
child 2552 5f711e4668f5
equal deleted inserted replaced
1:a9bb985de57e 2:f4a9492f737b
     1 #!/bin/bash
     1 #!/bin/bash
     2 
     2 
     3 ID=$RANDOM
     3 ID=$RANDOM
     4 
     4 
     5 cat $1 | \
     5 cat $1 | \
     6 sed -e "s/bipartite undirected graph/_bigr_aph_label_/g"\
     6 sed -e "s/bipartite undirected graph/bipartite graph/g"\
     7 	-e "s/bipartite graph/_bigr_aph_label_/g"\
       
     8 	-e "s/undirected graph/_gr_aph_label_/g"\
       
     9 	-e "s/undirected edge/_ed_ge_label_/g"\
     7 	-e "s/undirected edge/_ed_ge_label_/g"\
    10 	-e "s/BpUGraph/_Bigr_aph_label_/g"\
       
    11 	-e "s/BpUgraph/_Bigr_aph_label_/g"\
       
    12 	-e "s/bpUGraph/_bigr_aph_label_/g"\
       
    13 	-e "s/bpUgraph/_bigr_aph_label_/g"\
       
    14 	-e "s/bpugraph/_bigr_aph_label_/g"\
       
    15 	-e "s/UGraph/_Gr_aph_label_/g"\
     8 	-e "s/UGraph/_Gr_aph_label_/g"\
    16 	-e "s/uGraph/_gr_aph_label_/g"\
     9 	-e "s/uGraph/_gr_aph_label_/g"\
    17 	-e "s/ugraph/_gr_aph_label_/g"\
    10 	-e "s/ugraph/_gr_aph_label_/g"\
    18 	-e "s/Graph/_Digr_aph_label_/g"\
    11 	-e "s/Graph/_Digr_aph_label_/g"\
    19 	-e "s/graph/_digr_aph_label_/g"\
    12 	-e "s/graph/_digr_aph_label_/g"\
    32 	-e "s/bNode/_blu_e_label_/g"\
    25 	-e "s/bNode/_blu_e_label_/g"\
    33 	-e "s/_Digr_aph_label_/Digraph/g"\
    26 	-e "s/_Digr_aph_label_/Digraph/g"\
    34 	-e "s/_digr_aph_label_/digraph/g"\
    27 	-e "s/_digr_aph_label_/digraph/g"\
    35 	-e "s/_Gr_aph_label_/Graph/g"\
    28 	-e "s/_Gr_aph_label_/Graph/g"\
    36 	-e "s/_gr_aph_label_/graph/g"\
    29 	-e "s/_gr_aph_label_/graph/g"\
    37 	-e "s/_Bigr_aph_label_/Bigraph/g"\
       
    38 	-e "s/_bigr_aph_label_/bigraph/g"\
       
    39 	-e "s/_Ar_c_label_/Arc/g"\
    30 	-e "s/_Ar_c_label_/Arc/g"\
    40 	-e "s/_ar_c_label_/arc/g"\
    31 	-e "s/_ar_c_label_/arc/g"\
    41 	-e "s/_Ed_ge_label_/Edge/g"\
    32 	-e "s/_Ed_ge_label_/Edge/g"\
    42 	-e "s/_ed_ge_label_/edge/g"\
    33 	-e "s/_ed_ge_label_/edge/g"\
    43 	-e "s/_Re_d_label_/Red/g"\
    34 	-e "s/_Re_d_label_/Red/g"\