13 namespace datastructure {
35 template <
typename K,
typename E2 = K>
65 fromv(from), tov (to), edge_data(data), lvis(lv) {
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:64
const K & to() const
Destination vertex accessor.
Definition: Edge.h:86
Color getColor() const
return the current color of the edge
Definition: Edge.h:169
void setEdgeData(const E2 &data)
Sets edge data to "data".
Definition: Edge.h:94
LinkVisualizer * getLinkVisualizer()
Get the link visualizer of this edge.
Definition: Edge.h:176
string getLabel() const
Return the edge label.
Definition: Edge.h:116
void setThickness(const double &th)
Definition: LinkVisualizer.h:89
double getThickness() const
Get the link thickness.
Definition: LinkVisualizer.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:162
E2 & getEdgeData()
Return the edge data.
Definition: Edge.h:109
This class represents Color, and supports rgba, hexadecimal and named color values.
Definition: Color.h:51
Color getColor() const
Return the link color.
Definition: LinkVisualizer.h:124
void setLabel(const string &lab)
Sets label of the link.
Definition: LinkVisualizer.h:78
const K & from() const
Source vertex accessor.
Definition: Edge.h:77
these methods convert byte arrays in to base64 codes and are used in BRIDGES to represent the color a...
Definition: alltypes.h:4
const E2 & getEdgeData() const
Return the edge data.
Definition: Edge.h:102
void setColor(const Color &col)
Set the link color.
Definition: LinkVisualizer.h:109
double getThickness() const
Get the thickness of the edge.
Definition: Edge.h:144
void setColor(const Color &col)
Set the color of the edge.
Definition: Edge.h:153
This class maintains the visual properties of links within data structures.
Definition: LinkVisualizer.h:26
~Edge()
Definition: Edge.h:68
string getLabel() const
Return the link label.
Definition: LinkVisualizer.h:69
void setLabel(const string &lab)
Sets edge label to "lab".
Definition: Edge.h:125
This helper class is used by the graph classes - GraphAdjList , GraphAdjMatrix - to keep track of edg...
Definition: Edge.h:36
void setThickness(const double &th)
Change the thickness of the edge when displayed.
Definition: Edge.h:137