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 <ogdf/basic/Array.h>
35#include <ogdf/basic/Graph.h>
37#include <ogdf/basic/basic.h>
38#include <ogdf/basic/geometry.h>
39
40#include <ogdf/external/coin.h>
41
42class CoinPackedMatrix;
43
44namespace ogdf {
45class GraphAttributes;
46template<class E>
47class List;
48
50
64public:
66
67 DRect bbox() const { return m_bbox; }
68
69 void bbox(const DRect& bb) { m_bbox = bb; }
70
71 virtual void call(GraphAttributes& AG) override;
72 void call(GraphAttributes& AG, const List<node>& givenNodes);
73
74private:
75 static bool solveLP(int cols, const CoinPackedMatrix& Matrix,
76 const Array<double>& rightHandSide, Array<double>& x);
77
78 void setFixedNodes(const Graph& G, List<node>& nodes, List<DPoint>& pos, double radius = 1.0);
79
85 void setFixedNodes(const Graph& G, List<node>& nodes, const List<node>& givenNodes,
86 List<DPoint>& pos, double radius = 1.0);
87
88 bool doCall(GraphAttributes& AG, const List<node>& fixedNodes, List<DPoint>& fixedPositions);
89
91};
92
93}
Declaration and implementation of Array class and Array algorithms.
Includes declaration of graph class.
Declaration of interface for layout algorithms (class LayoutModule)
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
Basic declarations, included by all source files.
The parameterized class Array implements dynamic arrays of type E.
Definition Array.h:219
Rectangles with real coordinates.
Definition geometry.h:798
Stores additional attributes of a graph (like layout information).
Data type for general directed graphs (adjacency list representation).
Definition Graph_d.h:866
Interface of general layout algorithms.
Doubly linked lists (maintaining the length of the list).
Definition List.h:1451
Tutte's layout algorithm.
Definition TutteLayout.h:63
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:67
void bbox(const DRect &bb)
Definition TutteLayout.h:69
Definition of ogdf::CoinManager.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF dynamic library (shared object / DLL),...
Definition config.h:117
The namespace for all OGDF objects.