Stores additional attributes of a hypergraph. More...
#include <ogdf/hypergraph/HypergraphAttributes.h>
Public Member Functions | |
HypergraphAttributes () | |
Initializes new instance of class HypergraphAttributes. More... | |
HypergraphAttributes (const Hypergraph &H) | |
Initializes new instance of class HypergraphAttributes. More... | |
virtual | ~HypergraphAttributes () |
Destructor. More... | |
const Hypergraph & | constHypergraph () const |
const double & | height (hypernode v) |
Returns the height of the bounding box of hypernode v . More... | |
string & | label (hypernode v) |
Returns the label of hypernode v . More... | |
void | setHeight (hypernode v, int pHeight) |
Sets the the height of hypernode v . More... | |
void | setWidth (hypernode v, int pWidth) |
Sets the the width of hypernode v . More... | |
void | setX (hypernode v, double pX) |
Sets the x-coordinate of hypernode v . More... | |
void | setY (hypernode v, double pY) |
Sets the y-coordinate of hypernode v . More... | |
int | shape (hypernode v) |
Returns the shape of hypernode v . More... | |
const double & | width (hypernode v) |
Returns the width of the bounding box of hypernode v . More... | |
const double & | x (hypernode v) |
Returns the x-coordinate of hypernode v . More... | |
const double & | y (hypernode v) |
Returns the y-coordinate of hypernode v . More... | |
Protected Attributes | |
HypernodeArray< double > | m_height |
Height of a hypernodes bounding box. More... | |
const Hypergraph * | m_hypergraph |
Only points to an existing hypergraph. More... | |
HypernodeArray< string > | m_label |
Label of a hypernode. More... | |
HypernodeArray< int > | m_shape |
Shape of a hypernode. More... | |
HypernodeArray< double > | m_width |
Width of a hypernode bounding box. More... | |
HypernodeArray< double > | m_x |
Coordinate x of a hypernod.e. More... | |
HypernodeArray< double > | m_y |
Coordinate y of a hypernode. More... | |
Stores additional attributes of a hypergraph.
Because of different representation standards of hypergraphs (edge or subset) there are two different classes for hypergraph attributes. The main reason is that some edge standard attributes are pointless in t subset standard representation and vice-versa. Common attributes, currently various hypernode attributes only, are pushed to the superclass HypergraphAttributes.
Similarly to GraphAttributes, attributes are simply stored in hypernode or hyperedge arrays.
Definition at line 60 of file HypergraphAttributes.h.
|
inline |
Initializes new instance of class HypergraphAttributes.
Definition at line 85 of file HypergraphAttributes.h.
|
inlineexplicit |
Initializes new instance of class HypergraphAttributes.
Definition at line 88 of file HypergraphAttributes.h.
|
inlinevirtual |
Destructor.
Definition at line 98 of file HypergraphAttributes.h.
|
inline |
Definition at line 100 of file HypergraphAttributes.h.
|
inline |
Returns the height of the bounding box of hypernode v
.
Definition at line 121 of file HypergraphAttributes.h.
|
inline |
Returns the label of hypernode v
.
Definition at line 130 of file HypergraphAttributes.h.
|
inline |
Sets the the height of hypernode v
.
Definition at line 124 of file HypergraphAttributes.h.
|
inline |
Sets the the width of hypernode v
.
Definition at line 118 of file HypergraphAttributes.h.
|
inline |
Sets the x-coordinate of hypernode v
.
Definition at line 106 of file HypergraphAttributes.h.
|
inline |
Sets the y-coordinate of hypernode v
.
Definition at line 112 of file HypergraphAttributes.h.
|
inline |
Returns the shape of hypernode v
.
Definition at line 127 of file HypergraphAttributes.h.
|
inline |
Returns the width of the bounding box of hypernode v
.
Definition at line 115 of file HypergraphAttributes.h.
|
inline |
Returns the x-coordinate of hypernode v
.
Definition at line 103 of file HypergraphAttributes.h.
|
inline |
Returns the y-coordinate of hypernode v
.
Definition at line 109 of file HypergraphAttributes.h.
|
protected |
Height of a hypernodes bounding box.
Definition at line 78 of file HypergraphAttributes.h.
|
protected |
Only points to an existing hypergraph.
Definition at line 63 of file HypergraphAttributes.h.
|
protected |
Label of a hypernode.
Definition at line 66 of file HypergraphAttributes.h.
|
protected |
Shape of a hypernode.
Definition at line 81 of file HypergraphAttributes.h.
|
protected |
Width of a hypernode bounding box.
Definition at line 75 of file HypergraphAttributes.h.
|
protected |
Coordinate x of a hypernod.e.
Definition at line 69 of file HypergraphAttributes.h.
|
protected |
Coordinate y of a hypernode.
Definition at line 72 of file HypergraphAttributes.h.