|
| Edge (const K &from, const K &to, LinkVisualizer *lv, const E2 &data=E2()) |
| Constructs an edge with the given destination vertex, and edge data.
|
|
| ~Edge () |
|
const K & | from () const |
| Source vertex accessor.
|
|
const K & | to () const |
| Destination vertex accessor.
|
|
void | setEdgeData (const E2 &data) |
| Sets edge data to "data".
|
|
const E2 & | getEdgeData () const |
| Return the edge data.
|
|
E2 & | getEdgeData () |
| Return the edge data.
|
|
string | getLabel () const |
| Return the edge label.
|
|
void | setLabel (const string &lab) |
| Sets edge label to "lab".
|
|
void | setThickness (const double &th) |
| Change the thickness of the edge when displayed.
|
|
double | getThickness () const |
| Get the thickness of the edge.
|
|
void | setColor (const Color &col) |
| Set the color of the edge.
|
|
void | setColor (const string col) |
| Set the color to a named color. Check the Color class for a list of named colors.
|
|
Color | getColor () const |
| return the current color of the edge
|
|
LinkVisualizer * | getLinkVisualizer () |
| Get the link visualizer of this edge.
|
|
template<typename K, typename E2 = K>
class bridges::datastructure::Edge< K, E2 >
This helper class is used by the graph classes - GraphAdjList , GraphAdjMatrix - to keep track of edge information.
This class is used to assign a visual connection between two Elements in the Bridges Visualization.
Bridges will represent these as arrows between two Elements. The starting Element of the arrow will be referred to as the source Element and the ending Element of the arrow will be referred to as the terminating Element.
- Author
- Kalpathi Subramanian, Erik Saule
- Date
- 12/28/20
- Parameters
-