|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
| Uses of Edge in graph |
|---|
| Methods in graph that return Edge | |
|---|---|
Edge<E> |
Vertex.getEdgeTo(Vertex<E> v)
Returns the edge object with which this vertex connects to a given vertex. |
| Methods in graph that return types with arguments of type Edge | |
|---|---|
java.util.ArrayList<Edge<E>> |
Vertex.getEdges()
Returns an array of all edges that this vertex connects to. |
| Methods in graph with parameters of type Edge | |
|---|---|
void |
Vertex.addEdge(Edge<E> e)
Adds the given edge to this vertex object. Warning: this will not add the same edge to the other vertex. |
int |
Edge.compareTo(Edge<E> e)
Comparison based on edge weight. |
Vertex<E> |
Vertex.getOtherEnd(Edge<E> e)
Given an edge, returns the vertex that is not equal to this vertex. |
|
|||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||