| ... |
... |
@@ -32,74 +32,82 @@
|
| 32 |
32 |
|
| 33 |
33 |
- \ref concepts::Digraph "Directed graphs" are called \c Digraph and
|
| 34 |
34 |
they have <tt>Arc</tt>s (instead of <tt>Edge</tt>s), while
|
| 35 |
35 |
\ref concepts::Graph "undirected graphs" are called \c Graph
|
| 36 |
36 |
(instead of \c UGraph) and they have <tt>Edge</tt>s (instead of
|
| 37 |
37 |
<tt>UEdge</tt>s). These changes reflected thoroughly everywhere in
|
| 38 |
38 |
the library. Namely,
|
| 39 |
39 |
- \c Graph -> \c Digraph
|
| 40 |
40 |
- \c %ListGraph -> \c ListDigraph, \c %SmartGraph -> \c SmartDigraph etc.
|
| 41 |
41 |
- \c UGraph -> \c Graph
|
| 42 |
42 |
- \c ListUGraph -> \c ListGraph, \c SmartUGraph -> \c SmartGraph etc.
|
| 43 |
43 |
- \c Edge -> \c Arc, \c UEdge -> \c Edge
|
| 44 |
44 |
- \c EdgeMap -> \c ArcMap, \c UEdgeMap -> \c EdgeMap
|
| 45 |
45 |
- \c EdgeIt -> \c ArcIt, \c UEdgeIt -> \c EdgeIt
|
| 46 |
46 |
- Class names and function names containing the words \c graph,
|
| 47 |
47 |
\c ugraph, \e edge or \e arc should also be updated.
|
| 48 |
48 |
- <b>The two endpoints of an (\e undirected) \c Edge can be obtained by the
|
| 49 |
49 |
<tt>u()</tt> and <tt>v()</tt> member function of the graph
|
| 50 |
50 |
(instead of <tt>source()</tt> and <tt>target()</tt>). This change
|
| 51 |
51 |
must be done by hand.</b>
|
| 52 |
52 |
\n Of course, you can still use <tt>source()</tt> and <tt>target()</tt>
|
| 53 |
53 |
for <tt>Arc</tt>s (directed edges).
|
| 54 |
54 |
|
| 55 |
55 |
\warning
|
| 56 |
56 |
<b>The <tt>script/lemon-0.x-to-1.x.sh</tt> tool replaces all instances of
|
| 57 |
57 |
the words \c graph, \c digraph, \c edge and \c arc, so it replaces them
|
| 58 |
58 |
in strings, comments etc. as well as in all identifiers.</b>
|
| 59 |
59 |
|
| 60 |
60 |
\section migration-lgf LGF tools
|
| 61 |
61 |
|
| 62 |
62 |
\section migration-search BFS, DFS and Dijkstra
|
| 63 |
63 |
- <b>Using the function interface of BFS, DFS and %Dijkstra both source and
|
| 64 |
64 |
target nodes can be given as parameters of the <tt>run()</tt> function
|
| 65 |
65 |
(instead of \c bfs(), \c dfs() or \c dijkstra() itself).</b>
|
| 66 |
66 |
- \ref named-templ-param "Named class template parameters" of \c Bfs,
|
| 67 |
67 |
\c Dfs, \c Dijkstra, \c BfsVisit, \c DfsVisit are renamed to start
|
| 68 |
68 |
with "Set" instead of "Def". Namely,
|
| 69 |
69 |
- \c DefPredMap -> \c SetPredMap
|
| 70 |
70 |
- \c DefDistMap -> \c SetDistMap
|
| 71 |
71 |
- \c DefReachedMap -> \c SetReachedMap
|
| 72 |
72 |
- \c DefProcessedMap -> \c SetProcessedMap
|
| 73 |
73 |
- \c DefHeap -> \c SetHeap
|
| 74 |
74 |
- \c DefStandardHeap -> \c SetStandardHeap
|
| 75 |
75 |
- \c DefOperationTraits -> \c SetOperationTraits
|
| 76 |
76 |
- \c DefProcessedMapToBeDefaultMap -> \c SetStandardProcessedMap
|
| 77 |
77 |
|
| 78 |
78 |
\section migration-error Exceptions and Debug tools
|
| 79 |
79 |
|
|
80 |
<b>The class hierarchy of exceptions has largely been simplified. Now,
|
|
81 |
only the i/o related tools may throw exceptions. All other exceptions
|
|
82 |
have been replaced with either the \c LEMON_ASSERT or the \c LEMON_DEBUG
|
|
83 |
macros.</b>
|
|
84 |
|
|
85 |
<b>On the other hand, the parameter order of constructors of the
|
|
86 |
exceptions has been changed. See \ref IoError and \ref FormatError for
|
|
87 |
more details.</b>
|
|
88 |
|
| 80 |
89 |
\section migration-other Others
|
| 81 |
90 |
- <b>The contents of <tt>graph_utils.h</tt> are moved to <tt>core.h</tt>
|
| 82 |
91 |
and <tt>maps.h</tt>. <tt>core.h</tt> is included by all graph types,
|
| 83 |
92 |
therefore it usually do not have to be included directly.</b>
|
| 84 |
93 |
- <b><tt>path_utils.h</tt> is merged to \c path.h.</b>
|
|
94 |
- <b>The semantic of the assignment operations and copy constructors of maps
|
|
95 |
are still under discussion. So, you must copy them by hand (i.e. copy
|
|
96 |
each entry one-by-one)</b>
|
| 85 |
97 |
- <b>The parameters of the graph copying tools (i.e. \c GraphCopy,
|
| 86 |
98 |
\c DigraphCopy) have to be given in the from-to order.</b>
|
| 87 |
99 |
- \c copyDigraph() and \c copyGraph() are renamed to \c digraphCopy()
|
| 88 |
100 |
and \c graphCopy(), respectively.
|
| 89 |
|
- The of
|
| 90 |
|
- DefXyzMap --> SetXyzMap
|
| 91 |
|
- DefHeap --> SetHeap
|
| 92 |
|
- DefStandardHeap --> SetStandardHeap
|
| 93 |
|
- DefOperationTraits --> SetOperationTraits
|
| 94 |
|
- DefProcessedMapToBeDefaultMap --> SetStandardProcessedMap
|
|
101 |
- <b>The interface of \ref DynArcLookUp has changed. It is now the same as
|
|
102 |
of \ref ArcLookUp and \ref AllArcLookUp</b>
|
| 95 |
103 |
- Some map types should also been renamed. Namely,
|
| 96 |
104 |
- \c IntegerMap -> \c RangeMap
|
| 97 |
105 |
- \c StdMap -> \c SparseMap
|
| 98 |
106 |
- \c FunctorMap -> \c FunctorToMap
|
| 99 |
107 |
- \c MapFunctor -> \c MapToFunctor
|
| 100 |
108 |
- \c ForkWriteMap -> \c ForkMap
|
| 101 |
109 |
- \c StoreBoolMap -> \c LoggerBoolMap
|
| 102 |
110 |
- \c dim2::BoundingBox -> \c dim2::Box
|
| 103 |
111 |
|
| 104 |
112 |
*/
|
| 105 |
113 |
}
|