V
- vertex-typeP
- edge payload-typepublic final class TypedEdge<V,P> extends Object
Modifier and Type | Method and Description |
---|---|
String |
describeTo(boolean includePayload)
Describes the edge by showing the to vertex, and optionally the payload.
|
boolean |
equals(Object o) |
V |
getFrom()
The vertex the edge joins from.
|
P |
getPayload()
The edge.
|
V |
getTo()
The vertex the edge joins to.
|
int |
hashCode() |
V |
otherVertex(V vertex)
The other vertex on the edge
|
String |
toString() |
public V otherVertex(V vertex)
i.e. the one that isn't vertex
.
vertex
- a vertex that should be one of the two vertices in the edge (but this is not
checked).vertex
.public String describeTo(boolean includePayload)
includePayload
- iff true, the payload is included in the descriptionpublic P getPayload()
public V getFrom()
public V getTo()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.