|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
64 explicit Layout(
const Graph& G) : m_x(G, 0), m_y(G, 0), m_bends(G) { }
89 const double&
x(
node v)
const {
return m_x[v]; }
94 double&
x(
node v) {
return m_x[v]; }
99 const double&
y(
node v)
const {
return m_y[v]; }
104 double&
y(
node v) {
return m_y[v]; }
The namespace for all OGDF objects.
const NodeArray< double > & y() const
Returns a reference to the array storing y-coordinates of nodes.
Includes declaration of graph class.
const double & y(node v) const
Returns the y-coordinate of node v.
Planarized representations (of a connected component) of a graph.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
const NodeArray< double > & x() const
Returns a reference to the array storing x-coordinates of nodes.
EdgeArray< DPolyline > m_bends
The bend points of edges.
Polylines with PointType points.
DPolyline & bends(edge e)
Returns the bend point list of edge e.
Copies of graphs supporting edge splitting.
NodeArray< double > & y()
Returns a reference to the array storing y-coordinates of nodes.
double & y(node v)
Returns the y-coordinate of node v.
const DPolyline & bends(edge e) const
Returns the bend point list of edge e.
double & x(node v)
Returns the x-coordinate of node v.
Stores a layout of a graph (coordinates of nodes, bend points of edges).
Layout()
Creates a layout associated with no graph.
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
NodeArray< double > & x()
Returns a reference to the array storing x-coordinates of nodes.
RegisteredArray for nodes, edges and adjEntries of a graph.
Data type for general directed graphs (adjacency list representation).
NodeArray< double > m_y
The y-coordinates of nodes.
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Layout(const Graph &G)
Creates a layout associated with graph G.
Class for the representation of edges.
Class for the representation of nodes.
NodeArray< double > m_x
The x-coordinates of nodes.
Declaration of memory manager for allocating small pieces of memory.
const double & x(node v) const
Returns the x-coordinate of node v.
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.