13 namespace datastructure {
33 template <
typename K,
typename E2 = K>
63 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:62
const K & to() const
Definition: Edge.h:81
Color getColor() const
Definition: Edge.h:161
void setEdgeData(const E2 &data)
Definition: Edge.h:89
string getLabel() const
Definition: Edge.h:111
void setThickness(const double &th)
Definition: LinkVisualizer.h:81
double getThickness() const
Get the link thickness.
Definition: LinkVisualizer.h:92
void setColor(const string col)
Set the color to a named color.
Definition: Edge.h:155
E2 & getEdgeData()
Definition: Edge.h:104
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:116
void setLabel(const string &lab)
Sets label of the link.
Definition: LinkVisualizer.h:70
const K & from() const
Definition: Edge.h:73
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
Definition: Edge.h:97
void setColor(const Color &col)
Set the link color.
Definition: LinkVisualizer.h:101
double getThickness() const
Definition: Edge.h:138
void setColor(const Color &col)
Set the color of the edge when displayed.
Definition: Edge.h:147
This class maintains the visual properties of links within data structures.
Definition: LinkVisualizer.h:26
~Edge()
Definition: Edge.h:66
string getLabel() const
Return the link label.
Definition: LinkVisualizer.h:61
void setLabel(const string &lab)
Definition: Edge.h:120
This helper class is used by the graph classes - GraphAdjList , GraphAdjMatrix - to keep track of edg...
Definition: Edge.h:34
void setThickness(const double &th)
Change the thickness of the edge when displayed.
Definition: Edge.h:132