83 : m_hypergraph(nullptr)
93 m_width .
init(H,10.0);
94 m_height.
init(H,10.0);
106 return *m_hypergraph;
153 m_height[v] = pHeight;
199 : m_repGA(nullptr), m_repG(nullptr)
256 return m_repGA->
x(v);
272 m_repGA->
x(m_repG->
nodeMap(v)) = pX;
278 return m_repGA->
y(v);
285 m_repGA->
y(m_repG->
nodeMap(v)) = pY;
300 return m_repGA->
width(v);
316 m_repGA->
width(v) = pWidth;
322 return m_repGA->
height(v);
328 m_height[v] = pHeight;
338 m_repGA->
height(v) = pHeight;
344 return m_repGA->
bends(e);
348 void writeSVG(std::ostream &os,
int fontSize,
const string &fontColor)
const 351 m_repGA->writeSVG(os, fontSize, fontColor);
355 void writeSVG(
const char *fileName,
int fontSize,
const string &fontColor)
const 357 m_repGA->writeSVG(fileName, fontSize, fontColor);
HypernodeArray< double > m_x
Coordinate x of a hypernod.e.
EdgeStandardType
Enumeration class of possible edge standard representations.
double width(node v) const
Returns the width of the bounding box of node v.
Declaration of class GraphAttributes which extends a Graph by additional attributes.
void setX(node v, double pX)
Sets the x-coordinate of a representation node v.
Type type() const
Returns the type of hypernode.
DPolyline & bends(edge e)
Returns the list of bend points of edge e.
HypernodeElement::Type type(hypernode v)
Returns the type of representation node v.
HypernodeArray< int > m_shape
Shape of a hypernode.
Stores additional attributes of edge standard representation of a hypergraph.
EdgeStandardType m_type
The type of of edge standard representation.
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 double & width(hypernode v)
Returns the width of the bounding box of hypernode v.
Rectangles with real coordinates.
void setY(node v, double pY)
Sets the y-coordinate of a representation node v.
void init(const Hypergraph &H)
Reinitializes the array. Associates the array with H.
HypergraphAttributesES(const Hypergraph &pH, EdgeStandardType pType=EdgeStandardType::star)
Initializes new instance of class HypergraphAttributes.
EdgeStandardType type() const
void setHeight(hypernode v, double pHeight)
Sets the the height of hypernode v.
const GraphAttributes & repGA() const
bool directed() const
Returns if the graph is directed.
void removeUnnecessaryBendsHV()
Removes unnecessary bend points in orthogonal segements.
const DPolyline & bends(edge e) const
Returns the list of bend points of edge e.
HypernodeElement::Type type(node v)
Returns the type of representation node v.
const double & x(hypernode v)
Returns the x-coordinate of hypernode v.
const double & y(hypernode v)
Returns the y-coordinate of hypernode v.
const double & y(node v)
Returns the y-coordinate of a representation node v.
HypergraphAttributesES()
Initializes new instance of class HypergraphAttributes.
void setHeight(node v, double pHeight)
Sets the the height of a representation node v.
double height(node v) const
Returns the height of the bounding box of node v.
HypernodeArray< double > m_height
Height of a hypernodes bounding box.
for every hyperedge e = {v_1, ..., v_l} a single new dummy node v_e is introduced, moreover, v_e becomes the center of a new star connecting all hypernodes incident with e (ie. {v_1, v_e}, ..., {v_l, v_e} are added)
void setY(hypernode v, double pY)
Sets the x-coordinate of hypernode v.
void setWidth(hypernode v, double pWidth)
Sets the the width of hypernode v.
node nodeMap(hypernode v)
Returns the node associated with the hypernode.
virtual ~HypergraphAttributes()
Destructor.
double y(node v) const
Returns the y-coordinate of node v.
void setX(hypernode v, double pX)
Sets the x-coordinate of hypernode v.
HypernodeArray< double > m_width
Width of a hypernode bounding box.
const Graph & constGraph() const
Returns a reference to the representation graph.
virtual ~HypergraphAttributesES()
Destructor.
virtual DRect boundingBox() const
Returns the bounding box of the graph.
Stores additional attributes of a graph (like layout information).
const Hypergraph * m_hypergraph
Only points to an existing hypergraph.
hypernode hypernodeMap(node v)
Returns the hypernode associated with the node (if any).
Class for the representation of hypernodes.
Class for the representation of edges.
HypergraphAttributes(const Hypergraph &H)
Initializes new instance of class HypergraphAttributes.
EdgeStandardRep * m_repG
Edge standard representation reference.
double x(node v) const
Returns the x-coordinate of node v.
Class for the representation of nodes.
Polylines with PointType points.
static const long edgeGraphics
Corresponds to edge attribute bends(edge).
HypergraphAttributes()
Initializes new instance of class HypergraphAttributes.
void setWidth(hypernode v, int pWidth)
Sets the the width of hypernode v.
A declaration of EdgeStandardRep class representing a graph representation of a hypergraph in the edg...
Declaration and implementation of hyperraph array classes based on Node/EdgeArray classes written by ...
const double & height(hypernode v)
Returns the height of the bounding box of hypernode v.
const Graph & repGraph() const
void setX(hypernode v, double pX)
Sets the x-coordinate of hypernode v.
HypernodeArray< double > m_y
Coordinate y of a hypernode.
const double & width(node v)
Returns the width of a representation node v.
void setY(hypernode v, double pY)
Sets the y-coordinate of hypernode v.
const double & x(node v)
Returns the x-coordinate of representation node v.
int shape(hypernode v)
Returns the shape of hypernode v.
void setWidth(node v, double pWidth)
Sets the the width of a representation node v.
const Hypergraph & constHypergraph() const
string & label(hypernode v)
Returns the label of hypernode v.
The namespace for all OGDF objects.
HypernodeArray< string > m_label
Label of a hypernode.
void clearAllBends()
Removes all edge bends.
const DRect boundingBox() const
Returns the bounding box of the hypergraph.
Type
The type of hypernodes.
Stores additional attributes of a hypergraph.
Edge standard representation of hypergraphs.
void removeUnnecessaryBendsHV()
Removes unnecessary bend points in orthogonal segements.
const double & height(node v)
Returns the height of a representation node v.
GraphAttributes * m_repGA
Wrapped graph attributes reference.
static const long nodeGraphics
Corresponds to node attributes x(node), y(node), width(node), height(node), and shape(node).
void setHeight(hypernode v, int pHeight)
Sets the the height of hypernode v.