Open
Graph Drawing
Framework

 v. 2020.02 (Catalpa)
 

doc/relnotes/catalpa.md
Go to the documentation of this file.
1 [OGDF](../../README.md) » [Release Notes](../relnotes.md) » Catalpa
2 
3 # OGDF Catalpa (2020.02)
4 
5 Released 2020-02-09.
6 
7 This release has been in the making for a very long time. So-called "snapshots"
8 have been introduced in the meantime to shorten the waiting time for the next
9 release. Now, even after more than 3000 commits, our original ambitions of the
10 "next release" are still not fully met, but it is about time for a new snapshot.
11 We have however noticed that releasing snapshots has not proven to be useful;
12 it just caused irritation and confusion among OGDF users. Hence, starting with
13 this release, called Catalpa, we will not publish any further snapshots.
14 Instead, we will try to publish ordinary releases more often, i.e., whenever
15 there has been some noteworthy progress in OGDF.
16 
17 Moreover, OGDF got a new website, a new logo, and the abbreviation now has a
18 second meaning that reflects OGDF's matter in a better way. OGDF now stands
19 for both "Open Graph Drawing Framework" and "Open Graph algorithms and Data
20 structures Framework".
21 
22 ## Noteworthy changes since last snapshot
23 
24 If you used the snapshots, you might be interested in noteworthy changes
25 since the last OGDF snapshot:
26  * file formats:
27  * DL:
28  * improved (and fixed) logic when to use matrix and when to use
29  adjacency list
30  * DOT:
31  * fixes regarding cluster graphs and parsing bugs
32  * support for subgraphs, edge styles, edge types, custom node ids,
33  node label positions, arrow directions
34  * GEXF:
35  * support for subgraphs, labels, bend points, edge styles,
36  custom node ids, node label positions
37  * compatibility fixes (e.g., regarding edge weights)
38  * fix handling of directed vs. undirected graphs
39  * GML:
40  * compatibility changes regarding subgraphs
41  * support for node types, node label positions, integral edge weights
42  (including compatibility fix), and cluster graphs
43  * Graph6 family:
44  * new support for Sparse6 (s6) and Digraph6 (d6) file format
45  * fixed support for the case of 63 nodes
46  * GraphML:
47  * compatibility changes regarding subgraphs
48  * support for bend points, edge styles, custom node ids, node label positions
49  * fix handling of directed vs. undirected graphs
50  * STP:
51  * support for coordinates, directed edges, node shapes for terminals
52  * support for simplified format (from PACE 2018)
53  * support for background pattern's fill color of nodes in many file formats
54  * fix self-loops in Chaco file format
55  * the generic reader now supports more file formats and GraphAttributes
56  * some readers (e.g., Rudy) are stricter now
57  * readers with additional information (like edge weights or terminal nodes)
58  are now available in `Graph`-only form
59  * `GraphAttributes` can now be used for readers with edge weights
60  * new generic writer (`GraphIO::write()`) based on file name extension
61  * fix edge arrow issues in SVG printer
62  * deprecated `GraphIO` functions based on filenames (instead of streams)
63  are removed
64  * graph generators:
65  * faster `randomSimpleGraph()` and `randomSimpleConnectedGraph()`
66  * new `randomSimpleGraphByProbability()` for fast random graph generation
67  * new basic functions for convenience:
68  * cast from `AdjElement` to corresponding `node`
69  * `EdgeElement::nodes()` function for `for (node v : anEdge->nodes()) { ... }`
70  * `EdgeElement::isParallelUndirected()`
71  * `EdgeElement::isParallelDirected()`
72  * `EdgeElement::isInvertedDirected()`
73  * `GraphAttributes::transferTo{Original,Copy}()` to replace
74  `GraphCopyAttributes` class (which is removed)
75  * `GraphAttributes::all` flag
76  * `hasNonSelfLoopEdges()` to check whether a graph has edges
77  which are not self-loops
78  * `removeSelfLoops()`
79  * `Graph::searchEdge()` with and without edge direction
80  * `GraphAttributes::point(node)` instead of querying single x- and
81  y-coordinates
82  * `graphUnion()` to form a (disjoint and non-disjoint) union of two graphs
83  * `graphProduct()` to form the product of two graphs using a given function,
84  and its common use-cases:
85  * `cartesianProduct()`
86  * `tensorProduct()`
87  * `lexicographicalProduct()`
88  * `strongProduct()`
89  * `coNormalProduct()`
90  * `modularProduct()`
91  * `rootedProduct()`
92  * algorithms:
93  * new algorithms:
94  * `PlanarSubgraphTriangles` for finding planar subgraphs
95  * `EdgeIndependentSpanningTrees` for k edge-independent spanning trees
96  * simple algorithms regarding matchings, e.g., Matching::findMaximalMatching()
97  * algorithms for finding maximum planar subgraphs are now weight-templated
98  * `CliqueFinder` is split into `CliqueFinderHeuristic` and `CliqueFinderSPQR`
99  * Steiner tree:
100  * new `SteinerTreeLowerBoundDualAscent` algorithm that can be activated
101  for preprocessing (`SteinerTreePreprocessing::reduceFastAndDualAscent()`)
102  * overhaul of constructing and managing full components (for approximation
103  algorithms that use full components)
104  * slight overhaul of `SteinerTreePreprocessing` (including some fixes),
105  `MinSteinerTreeGoemans139`, `MinSteinerTreeRZLoss`
106  * other noteworthy changes
107  (besides typofixes, less compiler warnings, improved documentation, etc.):
108  * many layouts/algorithms now run on corner cases like empty graphs or single nodes
109  * overhaul of `ClusterGraphAttributes`, now similar to `GraphAttributes`
110  * `AdjacencyOracle` can now trade memory usage versus speed
111  by ignoring nodes of small degree
112  * `Layout::computeBoundingBox()` can now handle negative coordinates
113  * `ConnectivityTester` returns correct values also for node-connectivity now
114  * `GraphCopy` copy assignment operator fixed for uninitialized `GraphCopy`
115  * removed `PreconditionViolatedException`
116 
117 ## Noteworthy changes since Baobab
118 
119 Now let us talk about changes since our last non-snapshot release Baobab.
120 
121 First of all, we are now using C++11 features, hence a C++11-capable compiler
122 is necessary to use OGDF. Note that for this transition, macros like
123 `forall_nodes()` have been removed in favor of range-based for-loops.
124 
125 Check the [porting guide](../porting/catalpa.md) for compatibility-breaking
126 changes.
127 
128 Our build system has been modernized to use CMake instead of self-written
129 Python scripts. Our documentation (see the [Build Guide](../build.md))
130 provides examples how to use it if you are not familiar with CMake.
131 
132 Noteworthy changes since Baobab:
133  * file formats:
134  * there is now a generic reader (`GraphIO::read()`) recognizing many
135  graph formats...
136  * ...and a generic writer (`GraphIO::write()`) based on file name extension
137  * new support for file formats:
138  * Graph6 (g6)
139  * Sparse6 (s6)
140  * Digraph6 (d6)
141  * format of the DIMACS maximum flow challenge (DMF)
142  * additional features and fixes in support for
143  Chaco, DL, DOT, GDF, GEXF, GML, GraphML, STP, TLP
144  * some readers (e.g., Rudy, GEXF, TLP) are stricter now (not accepting rubbish)
145  * buggy XML parser is replaced by [pugixml](https://pugixml.org/)
146  * dead OGML file format no longer supported
147  * SVG printer is rewritten (bugfixes included)
148  * readers with additional information (like edge weights or terminal nodes)
149  are now available in `Graph`-only form
150  * `GraphAttributes` can now be used for readers with edge weights
151  * `GraphIO` functions based on filenames (instead of streams) are removed
152  * layouts:
153  * new `LinearLayout`, places nodes next to each other
154  and draws edges as bows above the nodes
155  * new `NodeRespecterLayout`, a force-directed layout
156  respecting node shapes and sizes
157  * `SchnyderLayout` can now compute the 1989's paper version by using
158  `SchnyderLayout::setCombinatorialObjects(SchnyderLayout::CombinatorialObjects::Faces)`
159  * fixed setting of random seeds in `FMMMLayout`
160  * `LayoutStatistics` changes:
161  * new `numberOfNodeOverlaps()` method
162  * new `numberOfNodeCrossings()` method
163  * `numberOfCrossings()` can now return statistical measures on crossings
164  * new graph generators:
165  * `customGraph()` for quick generation of specific custom graphs
166  * `emptyGraph()` for an empty graph or n isolated nodes
167  * `circulantGraph()` for circulant graphs
168  * `completeKPartiteGraph()` and `completeBipartiteGraph()`
169  * `randomSimpleConnectedGraph()`
170  * `randomSimpleGraphByProbability()`
171  * `randomGeometricCubeGraph()` for random geometric graphs in a unit n-cube
172  * `randomRegularGraph()` for random regular graphs
173  * `preferentialAttachmentGraph()`
174  * `regularLatticeGraph()`
175  * `randomWattsStrogatzGraph()`
176  * `randomChungLuGraph()`
177  * `randomGeographicalThresholdGraph()`
178  * `randomWaxmanGraph()`
179  * generic `randomEdgesGraph()`
180  * algorithms:
181  * new algorithms:
182  * s-t-planarity (planar and nodes s and t share a face):
183  * `isSTPlanar()` to check if a graph is s-t-planar
184  * `planarSTEmbed()` to embed a graph s-t-planarly
185  * maximum flows in networks:
186  * `MaxFlowEdmondsKarp`
187  * `MaxFlowGoldbergTarjan`
188  * `MaxFlowSTPlanarDigraph`
189  * `MaxFlowSTPlanarItaiShiloach`
190  * minimum s-t-cuts:
191  * `MinSTCutBFS`
192  * `MinSTCutDijkstra`
193  * `MinSTCutMaxflow` (replaces old `MinSTCut`)
194  * Steiner trees:
195  * `MinSteinerTreeDirectedCut`
196  * `MinSteinerTreeDualAscent`
197  * `MinSteinerTreeGoemans139`
198  * `MinSteinerTreeKou`
199  * `MinSteinerTreeMehlhorn`
200  * `MinSteinerTreePrimalDual`
201  * `MinSteinerTreeRZLoss`
202  * `MinSteinerTreeShore`
203  * `MinSteinerTreeTakahashi`
204  * `MinSteinerTreeZelikovsky`
205  * `SteinerTreePreprocessing`
206  * `SteinerTreeLowerBoundDualAscent`
207  * planar subgraphs:
208  * `PlanarSubgraphTriangles`
209  * `PlanarSubgraphTree`
210  * `PlanarSubgraphCactus`
211  * `PlanarSubgraphEmpty`
212  * `MaximalPlanarSubgraphSimple`
213  * canonical orderings:
214  * `LeftistOrdering`
215  * `BitonicOrdering`
216  * `MaxAdjOrdering` to compute one or all maximum adjacency orderings
217  * `AStarSearch` for finding a shortest path between two given nodes
218  * `MaximalFUPS` for the maximal feasible upward-planar subgraph
219  based on a SAT formulation
220  * `EdgeIndependentSpanningTrees` for k edge-independent spanning trees
221  * simple algorithms regarding matchings, e.g.,
222  `Matching::findMaximalMatching()`
223  * `isTwoEdgeConnected()` to check a graph for 2-edge-connectivity
224  * `isBipartite()`
225  * planar subgraph algorithms:
226  * `MaximumPlanarSubgraph` now supports weighted edges
227  * renamed `BoyerMyrvoldSubgraph` to `PlanarSubgraphBoyerMyrvold`
228  * renamed `FastPlanarSubgraph` to `PlanarSubgraphFast`
229  * `NonPlanarCore`:
230  * can now process weighted graphs
231  * new `NonPlanarCore::retransform()`
232  * improved (returns simple graphs)
233  * `MinCostFlowReinelt` is now cost-templated
234  * `CliqueFinder` is split into `CliqueFinderHeuristic` and `CliqueFinderSPQR`
235  * renamed and deprecated some forest functions with misleading names
236  * new basic functions (e.g., for convenience):
237  * cast from `AdjElement` to corresponding node
238  * `AdjElement::isSource()`
239  * `AdjElement::isBetween()`
240  * `EdgeElement::nodes()` function for `for (node v : anEdge->nodes()) { ... }`
241  * `EdgeElement::isAdjacent()`
242  * `EdgeElement::getAdj()`
243  * `EdgeElement::isParallelUndirected()`
244  * `EdgeElement::isParallelDirected()`
245  * `EdgeElement::isInvertedDirected()`
246  * `operator()` indexing (as synonym for `operator[]`) for `NodeArray`s and alike
247  * `operator==` and `operator!=` for `Array` and `ArrayBuffer`
248  * `GraphCopy::isReversedCopyEdge()`
249  * `Graph::searchEdge()` with and without edge direction
250  * `GraphAttributes::nodeBoundingBoxes(boundingBoxes)`
251  * `GraphAttributes::has()` to check for attributes
252  * `GraphAttributes::transferTo{Original,Copy}()` to replace
253  `GraphCopyAttributes` class (which is removed)
254  * `GraphAttributes::all` flag
255  * `GraphAttributes::point(node)` instead of querying single x- and
256  y-coordinates
257  * `hasNonSelfLoopEdges()` to check whether a graph has edges
258  which are not self-loops
259  * `removeSelfLoops()`
260  * `Graph::insert()`
261  * `graphUnion()` to form a (disjoint and non-disjoint) union of two graphs
262  * `graphProduct()` to form the product of two graphs using a given function, and its common use-cases:
263  * `cartesianProduct()`
264  * `tensorProduct()`
265  * `lexicographicalProduct()`
266  * `strongProduct()`
267  * `coNormalProduct()`
268  * `modularProduct()`
269  * `rootedProduct()`
270  * methods like `Graph::chooseNode()` or
271  `CombinatorialEmbedding::chooseFace()` can now adhere to constraints
272  * `nodeDistribution()` and `degreeDistribution()` as a special case
273  * `isRegular()` to check if a graph is regular
274  * `GenericComparer` replaces simple custom comparers by using lambdas
275  * `Graph::allNodes()` and `Graph::allEdges()` for arrays
276  * `GraphAttributes::{x,y,z}Label()` methods for the coordinates of
277  a label relative to its node
278  * `Graph::HiddenEdgeSet` replaces old and buggy (un)hiding mechanism for edges
279  * new `EpsilonTest` class
280  * geometry classes:
281  * `DPoint`, `IPoint` are now template specializations of `GenericPoint`
282  * `DPolyline, `IPolyline` are now template specializations of new
283  `GenericPolyline`
284  * new `GenericLine` and new `GenericSegment` represent (infinite) lines and
285  (finite) line segments, respectively, replacing `DLine` being a mix
286  of both (for double only)
287  * improved intersection methods for these classes
288  * removed: `DVector` (simply use `DPoint`), `DScaler`, `DRound`
289  * new `DRect::intersection()`
290  * fixed bug and generalized `DPolyline::normalize()`
291  * new `DIntersectableRect` replaces `IntersectionRectangle`
292  * `Math` utility changes:
293  * `Math` is now a namespace instead of a static class
294  * deprecate functions where one can use STL functions instead
295  * template some functions such that they can be used,
296  e.g., for ints and doubles
297  * new `harmonic(n)` to compute the n-th harmonic number
298  * new `minValue()`, `maxValue()`, `sum()`, `mean()`, `standardDeviation()`
299  * new `radiansToDegrees()` and `degreesToRadians()`
300  * new `updateMin()` and `updateMax()`
301  * new `nextPower2()`
302  * overhaul of `ClusterGraphAttributes`, now similar to `GraphAttributes`
303  * removed classes `Stack`, `StackPure`, `BoundedStack` in favor of `ArrayBuffer`
304  * removed OGDF file system functions (outside of scope of OGDF)
305  * rather internal but noteworthy changes:
306  * all include guards are replaced by `#pragma once`
307  * all header files are now self-sufficient (i.e., have no other dependencies)
308  * enum classes (scoped enums) are now used throughout OGDF
309  instead of unscoped enums
310  * cleanup of global namespace
311  * some auxiliary classes are moved into sub-namespaces of `ogdf`
312  * many `std` members imported into the `ogdf` namespace are now removed
313  from it (e.g., `swap`, `[io]stream`, `numeric_limits`, `cin`, `cout`,
314  `endl`, `flush`, `ios`)
315  * `rbegin()` and `rend()` now work with reverse iterators instead
316  of forward iterators
317  * `rbegin()` is renamed to `backIterator()` where a reverse iterator
318  does not make sense
319  * removed `ModuleOption` (replaced by `std::unique_ptr`)
320  * `AdjacencyOracle` can now trade memory usage versus speed
321  by ignoring nodes of small degree
322  * the graph size is no longer bounded by the stack size
323  for the following algorithms:
324  * `biconnectedComponents()`
325  * `isAcyclic()`
326  * `isAcyclicUndirected()`
327  * `isBiconnected()`
328  * `isForest()`
329  * `makeBiconnected()`
330  * `strongComponents()`
331  * and all algorithms based on these functions
332  * new `safeForEach()` and `safeTestForEach()` as simple functions to iterate
333  over containers destructively (i.e., the current member of an iteration
334  may be destroyed)
335  * removed `PreconditionViolatedException`
336  * many many bugfixes, code cleanup, improvements in code quality,
337  documentation, and test coverage
338 
339 This release contains (huge and small) contributions by Anuj Agarwal,
340 Hendrick Brückler, Carsten Gutwenger, Daniel L. Lu, Denis Kurz, Ivo Hedtke,
341 Jens Schmidt, Jöran Schierbaum, Karsten Klein, Kévin Szkudłapski,
342 Łukasz Hanuszczak, Manuel Fiedler, Markus Chimani, Max Ilsen, Mirko Wagner,
343 Mihai Popa, raven-worx on GitHub, Sebastian Semper, Stephan Beyer,
344 Tilo Wiedera, and Yosuke Onoue.