62 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]; }
const double & x(node v) const
Returns the x-coordinate of node v.
NodeArray< double > m_x
The x-coordinates of nodes.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
EdgeArray< DPolyline > m_bends
The bend points of edges.
double & x(node v)
Returns the x-coordinate of node v.
Data type for general directed graphs (adjacency list representation).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
const NodeArray< double > & y() const
Returns a reference to the array storing y-coordinates of nodes.
#define OGDF_MALLOC_NEW_DELETE
Makes the class use malloc for memory allocation.
double & y(node v)
Returns the y-coordinate of node v.
Dynamic arrays indexed with edges.
DPolyline & bends(edge e)
Returns the bend point list of edge e.
Layout(const Graph &G)
Creates a layout associated with graph G.
const NodeArray< double > & x() const
Returns a reference to the array storing x-coordinates of nodes.
NodeArray< double > & y()
Returns a reference to the array storing y-coordinates of nodes.
const DPolyline & bends(edge e) const
Returns the bend point list of edge e.
const double & y(node v) const
Returns the y-coordinate of node v.
Declaration of graph copy classes.
Class for the representation of edges.
Copies of graphs supporting edge splitting.
Class for the representation of nodes.
Polylines with PointType points.
NodeArray< double > & x()
Returns a reference to the array storing x-coordinates of nodes.
Layout()
Creates a layout associated with no graph.
The namespace for all OGDF objects.
NodeArray< double > m_y
The y-coordinates of nodes.
Planarized representations (of a connected component) of a graph.
Stores a layout of a graph (coordinates of nodes, bend points of edges).