OGDF » Release Notes » Sassafras
Released 2010-10-21.
This release brings various new algorithms and features.
Highlights:
- Completely revised memory management; pool-memory allocator now supports thread-safe allocation.
- Basic multithreading support for OGDF algorithms.
- New class System provides methods for accessing system-dependent information and functionality (processor features, memory usage, file system).
- New hierarchical graph layout method using upward planarization (class
UpwardPlanarization); outperforms traditional Sugiyama-based methods with respect to crossings by far. - New multilevel layout algorithm (
FastMultipoleMultilevelEmbedder), based on the multipole method, well-separated pair decomposition, and a new quadtree space partitioning (Martin Gronemann's Diploma thesis); makes use of SSE and multicore processors and is significantly faster thanFMMMLayout. - New modular framework for multilevel graph layout (class
ModularMultilevelMixer) with various options for coarsening, placement, and single-level layout. - New force-directed layout algorithms: Kamada-Kawai (class
SpringEmbedderKK) and stress majorization (classStressMajorization). - New layout algorithms for directed graphs:
DominanceLayoutandVisibilityLayout. - Implementation of Prim's algorithm for minimum spanning tree computation.
- Added support for OGML graph file format.
- Exact algorithms for computing maximum planar and maximum c-planar
subgraphs (classes
MaximumPlanarSubgraphandMaximumCPlanarSubgraph). - OGDF can now be compiled as DLL under Windows.
- Support for Visual Studio 2010 and latest g++ compilers.
- Completely revised memory management, with a new thread-safe pool-memory
allocator. OGDF provides now three allocators (which can be selected with
compiler predefines):
- thread-safe pool allocator (
OGDF_MEMORY_POOL_TS; usually the deafult), - non-thread-safe pool allocator (
OGDF_MEMORY_POOL_NTS), and - ordinary malloc/free (
OGDF_MEMORY_MALLOC_TS).
- thread-safe pool allocator (
- Basic, platform-independent multithreading support for OGDF algorithms;
new classes
Thread,CriticalSection,Mutex,Barrier. - New class
Systemprovides methods for accessing system-dependent information and functionality (processor features, memory usage, file system). - New layout algorithms for directed (hierarchical) graphs:
DominanceLayout, based on dominance layout of st-digraphs.VisibilityLayout, based on computation of a visibility representation.
- New hierarchical graph layout method using upward planarization (class
UpwardPlanarization); implements the algorithm by Chimani, Gutwenger, Mutzel and Wong. Outperforms traditional Sugiyama-based methods with respect to number of crossings by far. Uses module options for upward planarization and layout:UpwardPlanarizerModule: its implementationSubgraphUpwardPlanarizerapplies a 2-phase approach: first compute a feasible upward planar subgraph (FUPSModulewith implementationFUPSSimple), then insert remaining edges (UpwardEdgeInserterModulewith implementationFixedEmbeddingUpwardEdgeInserter).UPRLayoutModule: implementationLayerBasedUPRLayoutwhich makes use of hierarchy layout modules from the Sugiyama framework.
- New force-directed layout algorithms:
- Kamada-Kawai (class
SpringEmbedderKK) - stress majorization (class
StressMajorization).
- Kamada-Kawai (class
- New multilevel layout algorithm (
FastMultipoleMultilevelEmbedder), based on the multipole method, well-separated pair decomposition, and a new quadtree space partitioning (Martin Gronemann’s Diploma thesis); makes use of SSE and multicore processors and is significantly faster thanFMMMLayout. - New modular framework for multilevel graph layout (class
ModularMultilevelMixer) with various options for coarsening, placement, and single-level layout.MultilevelBuildermodule (coarsening):EdgeCoverMerger,IndependentSetMerger,LocalBiconnectedMerger,MatchingMerger,RandomMerger,SolarMerger.InitialPlacermodule (placement):BarycenterPlacer,CirclePlacer,MedianPlacer,RandomPlacer,SolarPlacer,ZeroPlacer.
- Implementation of Prims’ algorithm for minimum spanning tree computation
(function
computeMinSTinogdf/basic/extended_graph_alg.h. - Added support for OGML graph file format:
- Class
OgmlParserimplements a parser for OGML files. - Methods
writeOGMLandreadClusterGraphOGMLinClusterGraphAttributesprovide reading and writing of OGML files.
- Class
- Exact algorithm for computing a maximum planar subgraph (class
MaximumPlanarSubgraph); requires COIN and ABACUS. - Exact algorithm for computing a maximum c-planar subgraph (class
MaximumCPlanarSubgraph); requires COIN and ABACUS.
GraphAttributesprovides now a flag indicating if the graph is directed or not (default is true): methods directed for getting / setting, support in reading and writing GML files (readGMLandwriteGML).- Hash values are now of type
size_tfor providing better compatibility with 64-bit systems. - Default parameters of
GEMLayoutrevised. ClusterPlanarizationLayoutnow allows to pass edge weights in its call, which are used for computing a c-planar subgraph (edges with low weight are preferred).- Clarified
Comparerinterfaces:- Class
Comparer<E>renamed toVComparer<E>(since it relies on virtual functions). - Added the macros
OGDF_AUGMENT_COMPARERandOGDF_AUGMENT_STATICCOMPARERto allow easy generation of comparers with full interfaces. - Added
StdComparer(standard comparers) andTargetComparer(for comparing targets of pointers).
- Class
Array::grow()allows now to enlarge an array with empty index set.PlanarizationLayout: changed default planar subgraph toFastPlanarSubgraph.- Changed return type of
BCTree::findPathBCTree()to pointer (instead of reference) to reflect the fact that the returned object has been allocated withnew. isConnected(),makeConnected(): improved performance by replacing recursive with iterative implementation.- New, more efficient implementation of list-based stacks.
- Fixed bug in
SugiyamaLayout: possibly incorrect setting of number of crossings if there are several connected components andarrangeCCs = true. - Fixed bug in
BoyerMyrvold: incorrect embedding of self-loops. - Fixed memory leaks in
PlanarAugmentationFix,EmbedderMaxFace,EmbedderMaxFaceLayers,EmbedderMinDepth,EmbedderMinDepthMaxFace,EmbedderMinDepthMaxFace,EmbedderMinDepthPiTa,PlanarizationLayout. - Fixed bug with copy constructor of graph arrays (
NodeArray,EdgeArray, etc.): crashed if copied array was not initialized for a graph. - Fixed bug with Hierarchy: memory leaks occurred when using
initByNodes(). - Revised compiler condition for systems providing only 15 random bits
with rand() function; fixes a non-termination bug with
FMMMLayouton Solaris/SPARC. - Fixed a bug in
makeConnected(). - Fixed a memory leak in
LPSolver_coin.
- Added support for Visual Studio 2010, which introduces an new project
format (
.vcxproj). For creating such a project, usemakeVCXProj.py(instead ofmakeVCProj.py). At the moment, there is just one possible template file for VS 2010 (ogdf.vcxproj.vs2010.template; which is the default). - Added support for compiling OGDF as DLL under Windows (currently VS 2005
only); simply select project template
ogdf.dll.vcproj.vs2005.templateinmakeVCProj.config. - Added support for latest g++ compilers (4.1.x – 4.4.x) on Linux and Mac OS X.
- Windows only: OGDF now requires to also link against
Psapi.lib. - g++ on Linux/Mac only: OGDF now requires to link against pthreads;
add option
-pthreadwhen compiling and linking with g++.