Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
TutteLayout.h
Go to the documentation of this file.
1
32#pragma once
33
34#include <coin/CoinPackedMatrix.hpp>
35
37#include <ogdf/basic/geometry.h>
38#include <ogdf/external/coin.h>
39
40namespace ogdf {
41
43
57public:
59
60 DRect bbox() const { return m_bbox; }
61
62 void bbox(const DRect& bb) { m_bbox = bb; }
63
64 virtual void call(GraphAttributes& AG) override;
66
67private:
68 static bool solveLP(int cols, const CoinPackedMatrix& Matrix,
70
71 void setFixedNodes(const Graph& G, List<node>& nodes, List<DPoint>& pos, double radius = 1.0);
72
78 void setFixedNodes(const Graph& G, List<node>& nodes, const List<node>& givenNodes,
79 List<DPoint>& pos, double radius = 1.0);
80
82
84};
85
86}
Declaration of interface for layout algorithms (class LayoutModule)
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
The parameterized class Array implements dynamic arrays of type E.
Definition Array.h:214
Rectangles with real coordinates.
Definition geometry.h:790
Stores additional attributes of a graph (like layout information).
Data type for general directed graphs (adjacency list representation).
Definition Graph_d.h:521
Interface of general layout algorithms.
Doubly linked lists (maintaining the length of the list).
Definition List.h:1435
Tutte's layout algorithm.
Definition TutteLayout.h:56
bool doCall(GraphAttributes &AG, const List< node > &fixedNodes, List< DPoint > &fixedPositions)
void setFixedNodes(const Graph &G, List< node > &nodes, const List< node > &givenNodes, List< DPoint > &pos, double radius=1.0)
sets the positions of the nodes in a largest face of $G$ in the form of a regular $k$-gon with the pr...
void call(GraphAttributes &AG, const List< node > &givenNodes)
virtual void call(GraphAttributes &AG) override
Computes a layout of graph GA.
void setFixedNodes(const Graph &G, List< node > &nodes, List< DPoint > &pos, double radius=1.0)
static bool solveLP(int cols, const CoinPackedMatrix &Matrix, const Array< double > &rightHandSide, Array< double > &x)
DRect bbox() const
Definition TutteLayout.h:60
void bbox(const DRect &bb)
Definition TutteLayout.h:62
Definition of ogdf::CoinManager.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.