![]() |
Bridges-Java-2.2
2.2.0
Bridges(JavaAPI)
|
Public Member Functions | |
Edge () | |
Edge (int wt) | |
Edge (int wt, Key v) | |
void | setWeight (int wt) |
int | getWeight () |
void | setVertex (Key v) |
Key | getVertex () |
void | setEdge (int wt, Key v) |
Edge< Key > | getEdge () |
This class is used to represent the edges in a graph and will appear as links in the BRIDGES graph visualization
Bridges will represent these as arrows between pairs of 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.
generic | parameter <Key> |
bridges.base.Edge< Key >.Edge | ( | ) |
Constructors
bridges.base.Edge< Key >.Edge | ( | int | wt | ) |
Construct an edge with thickness equal to "wt" and no terminating Element
wt | integer representing the thickness of the arrow in the Bridges Visualization |
bridges.base.Edge< Key >.Edge | ( | int | wt, |
Key | v | ||
) |
Construct an edge with thickness equal to "wt" and a terminating Element with an identifer equal to "v" - used only for graphs
wt | integer, representint edge weight |
v | the terminating vertex of the edge |
Edge<Key> bridges.base.Edge< Key >.getEdge | ( | ) |
Returns this edge
Key bridges.base.Edge< Key >.getVertex | ( | ) |
int bridges.base.Edge< Key >.getWeight | ( | ) |
Get edge weight
void bridges.base.Edge< Key >.setEdge | ( | int | wt, |
Key | v | ||
) |
Set edge to thickness of "wt" and terminating Elememt of "v".
wt | integer representing the thickness of the arrow in the Bridges Visualization |
v | the string identifier of the terminating Element |
void bridges.base.Edge< Key >.setVertex | ( | Key | v | ) |
void bridges.base.Edge< Key >.setWeight | ( | int | wt | ) |
Set edge weight to "wt"
wt | - graph edge weight |