public class DirectedEdge<A,B>
extends java.lang.Object
Constructor and Description |
---|
DirectedEdge(Vertex<A,B> a,
Vertex<A,B> b) |
DirectedEdge(Vertex<A,B> a,
Vertex<A,B> b,
B dataValue) |
DirectedEdge(Vertex<A,B> a,
Vertex<A,B> b,
B dataValue,
double cost) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesConnect(Vertex<A,B> a,
Vertex<A,B> b) |
double |
getCost() |
B |
getData() |
Vertex<A,B> |
getVertex(int idx) |
void |
setCost(double value) |
void |
setData(B value) |
Vertex<A,B> |
traverse(Vertex<A,B> source) |
Vertex<A,B> |
traverseBackwards() |
Vertex<A,B> |
traverseForwards() |