V - The vertex typeE - The edge typepublic class DualGraphEdge<V extends Vertex,E extends Edge<V>> extends java.lang.Object implements Edge<DualGraphVertex<V,E>>
| Constructor and Description |
|---|
DualGraphEdge(DualGraphVertex<V,E> origin,
DualGraphVertex<V,E> destination) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
DualGraphVertex<V,E> |
getDestination() |
DualGraphVertex<V,E> |
getOrigin() |
int |
getWeight() |
int |
hashCode() |
void |
setDestination(DualGraphVertex<V,E> destination) |
void |
setOrigin(DualGraphVertex<V,E> origin) |
void |
setWeight(int weight) |
java.lang.String |
toString() |
public DualGraphEdge(DualGraphVertex<V,E> origin, DualGraphVertex<V,E> destination)
public DualGraphVertex<V,E> getOrigin()
public DualGraphVertex<V,E> getDestination()
getDestination in interface Edge<DualGraphVertex<V extends Vertex,E extends Edge<V>>>public void setOrigin(DualGraphVertex<V,E> origin)
public void setDestination(DualGraphVertex<V,E> destination)
setDestination in interface Edge<DualGraphVertex<V extends Vertex,E extends Edge<V>>>destination - Destination vertex to setpublic int getWeight()
public void setWeight(int weight)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object