1.1 --- a/tools/lemon-0.x-to-1.x.sh Mon Jan 12 23:11:39 2009 +0100
1.2 +++ b/tools/lemon-0.x-to-1.x.sh Thu Nov 05 15:48:01 2009 +0100
1.3 @@ -22,26 +22,25 @@
1.4 -e "s/\<directed edges\>/_ar_c_label_s/g"\
1.5 -e "s/UGraph/_Gr_aph_label_/g"\
1.6 -e "s/u[Gg]raph/_gr_aph_label_/g"\
1.7 - -e "s/\<Graph\>/_Digr_aph_label_/g"\
1.8 + -e "s/Graph\>/_Digr_aph_label_/g"\
1.9 -e "s/\<graph\>/_digr_aph_label_/g"\
1.10 - -e "s/\<Graphs\>/_Digr_aph_label_s/g"\
1.11 + -e "s/Graphs\>/_Digr_aph_label_s/g"\
1.12 -e "s/\<graphs\>/_digr_aph_label_s/g"\
1.13 - -e "s/_Graph/__Gr_aph_label_/g"\
1.14 - -e "s/\([Gg]\)raph\([a-z_]\)/_\1r_aph_label_\2/g"\
1.15 + -e "s/\([Gg]\)raph\([a-z]\)/_\1r_aph_label_\2/g"\
1.16 -e "s/\([a-z_]\)graph/\1_gr_aph_label_/g"\
1.17 -e "s/Graph/_Digr_aph_label_/g"\
1.18 -e "s/graph/_digr_aph_label_/g"\
1.19 -e "s/UEdge/_Ed_ge_label_/g"\
1.20 -e "s/u[Ee]dge/_ed_ge_label_/g"\
1.21 -e "s/IncEdgeIt/_In_cEd_geIt_label_/g"\
1.22 - -e "s/\<Edge\>/_Ar_c_label_/g"\
1.23 + -e "s/Edge\>/_Ar_c_label_/g"\
1.24 -e "s/\<edge\>/_ar_c_label_/g"\
1.25 - -e "s/\<Edges\>/_Ar_c_label_s/g"\
1.26 + -e "s/_edge\>/__ar_c_label_/g"\
1.27 + -e "s/Edges\>/_Ar_c_label_s/g"\
1.28 -e "s/\<edges\>/_ar_c_label_s/g"\
1.29 - -e "s/_Edge/__Ed_ge_label_/g"\
1.30 - -e "s/Edge\([a-z_]\)/_Ed_ge_label_\1/g"\
1.31 - -e "s/edge\([a-z_]\)/_ed_ge_label_\1/g"\
1.32 - -e "s/\([a-z_]\)edge/\1_ed_ge_label_/g"\
1.33 + -e "s/_edges\>/__ar_c_label_s/g"\
1.34 + -e "s/\([Ee]\)dge\([a-z]\)/_\1d_ge_label_\2/g"\
1.35 + -e "s/\([a-z]\)edge/\1_ed_ge_label_/g"\
1.36 -e "s/Edge/_Ar_c_label_/g"\
1.37 -e "s/edge/_ar_c_label_/g"\
1.38 -e "s/A[Nn]ode/_Re_d_label_/g"\
1.39 @@ -69,6 +68,11 @@
1.40 -e "s/_blu_e_label_/blue/g"\
1.41 -e "s/_GR_APH_TY_PEDE_FS_label_/GRAPH_TYPEDEFS/g"\
1.42 -e "s/_DIGR_APH_TY_PEDE_FS_label_/DIGRAPH_TYPEDEFS/g"\
1.43 + -e "s/\<digraph_adaptor\.h\>/adaptors.h/g"\
1.44 + -e "s/\<digraph_utils\.h\>/core.h/g"\
1.45 + -e "s/\<digraph_reader\.h\>/lgf_reader.h/g"\
1.46 + -e "s/\<digraph_writer\.h\>/lgf_writer.h/g"\
1.47 + -e "s/\<topology\.h\>/connectivity.h/g"\
1.48 -e "s/DigraphToEps/GraphToEps/g"\
1.49 -e "s/digraphToEps/graphToEps/g"\
1.50 -e "s/\<DefPredMap\>/SetPredMap/g"\
1.51 @@ -90,6 +94,10 @@
1.52 -e "s/\<\([Ff]\)orkWriteMap\>/\1orkMap/g"\
1.53 -e "s/\<StoreBoolMap\>/LoggerBoolMap/g"\
1.54 -e "s/\<storeBoolMap\>/loggerBoolMap/g"\
1.55 + -e "s/\<InvertableMap\>/CrossRefMap/g"\
1.56 + -e "s/\<invertableMap\>/crossRefMap/g"\
1.57 + -e "s/\<DescriptorMap\>/RangeIdMap/g"\
1.58 + -e "s/\<descriptorMap\>/rangeIdMap/g"\
1.59 -e "s/\<BoundingBox\>/Box/g"\
1.60 -e "s/\<readNauty\>/readNautyGraph/g"\
1.61 -e "s/\<RevDigraphAdaptor\>/ReverseDigraph/g"\
1.62 @@ -116,6 +124,11 @@
1.63 -e "s/\<arcSubGraphAdaptor\>/filterEdges/g"\
1.64 -e "s/\<DirGraphAdaptor\>/Orienter/g"\
1.65 -e "s/\<dirGraphAdaptor\>/orienter/g"\
1.66 + -e "s/\<LpCplex\>/CplexLp/g"\
1.67 + -e "s/\<MipCplex\>/CplexMip/g"\
1.68 + -e "s/\<LpGlpk\>/GlpkLp/g"\
1.69 + -e "s/\<MipGlpk\>/GlpkMip/g"\
1.70 + -e "s/\<LpSoplex\>/SoplexLp/g"\
1.71 <$i > $TMP
1.72 mv $TMP $i
1.73 done