13 namespace datastructure {
34 template <
typename K,
typename E2 = K>
64 fromv(from), tov (to), edge_data(data), lvis(lv) {
This class represents Color, and supports rgba, hexadecimal and named color values.
Definition: Color.h:50
This helper class is used by the graph classes - GraphAdjList , GraphAdjMatrix - to keep track of edg...
Definition: Edge.h:35
LinkVisualizer * getLinkVisualizer()
Get the link visualizer of this edge.
Definition: Edge.h:174
const K & from() const
Source vertex accessor.
Definition: Edge.h:76
const K & to() const
Destination vertex accessor.
Definition: Edge.h:84
E2 & getEdgeData()
Return the edge data.
Definition: Edge.h:107
const E2 & getEdgeData() const
Return the edge data.
Definition: Edge.h:100
void setColor(const string col)
Set the color to a named color. Check the Color class for a list of named colors.
Definition: Edge.h:160
void setLabel(const string &lab)
Sets edge label to "lab".
Definition: Edge.h:123
double getThickness() const
Get the thickness of the edge.
Definition: Edge.h:142
~Edge()
Definition: Edge.h:67
void setEdgeData(const E2 &data)
Sets edge data to "data".
Definition: Edge.h:92
void setColor(const Color &col)
Set the color of the edge.
Definition: Edge.h:151
string getLabel() const
Return the edge label.
Definition: Edge.h:114
Edge(const K &from, const K &to, LinkVisualizer *lv, const E2 &data=E2())
Constructs an edge with the given destination vertex, and edge data.
Definition: Edge.h:63
Color getColor() const
return the current color of the edge
Definition: Edge.h:167
void setThickness(const double &th)
Change the thickness of the edge when displayed.
Definition: Edge.h:135
This class maintains the visual properties of links within data structures.
Definition: LinkVisualizer.h:26
void setLabel(const string &lab)
Sets label of the link.
Definition: LinkVisualizer.h:78
double getThickness() const
Get the link thickness.
Definition: LinkVisualizer.h:101
void setThickness(const double &th)
Definition: LinkVisualizer.h:89
string getLabel() const
Return the link label.
Definition: LinkVisualizer.h:69
Color getColor() const
Return the link color.
Definition: LinkVisualizer.h:125
void setColor(const Color &col)
Set the link color.
Definition: LinkVisualizer.h:110
Support for drawing Bar charts.
Definition: alltypes.h:4