Class Edge<V>
java.lang.Object
com.github.yellowstonegames.path.Edge<V>
- Type Parameters:
V- the vertex type; oftenCoord
- Direct Known Subclasses:
Connection
Abstract superclass of any connection between nodes on a graph.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract VgetA()abstract VgetB()abstract floatbooleanhasEndpoint(V u) abstract booleanhasEndpoints(V u, V v) protected abstract voidabstract voidsetWeight(float weight)
-
Constructor Details
-
Edge
public Edge()
-
-
Method Details
-
getA
-
getB
-
hasEndpoints
-
hasEndpoint
-
getWeight
public abstract float getWeight() -
setWeight
public abstract void setWeight(float weight) -
getInternalNodeA
-
getInternalNodeB
-
set
-