| 
    Bridges-Java-2.3.2
    2.3.2
    
   Bridges(JavaAPI) 
   | 
 
This class is used to represent the edges in a graph and will appear as links in the BRIDGES graph visualization. More...
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.
This object is used in graph algorithms, such as DFS, BFS and shortest path algorithms that need to visit graph edges. The adjacency list representation uses them as the generic paramter, as SLelement<Edge> Bridges will represent Edges as links between pairs of elements
| 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 | 
 1.8.10