Class Edge<V>

java.lang.Object
com.github.yellowstonegames.path.Edge<V>
Type Parameters:
V - the vertex type; often Coord
Direct Known Subclasses:
Connection

public abstract class Edge<V> extends Object
Abstract superclass of any connection between nodes on a graph.
  • Constructor Details

    • Edge

      public Edge()
  • Method Details

    • getA

      public abstract V getA()
    • getB

      public abstract V getB()
    • hasEndpoints

      public abstract boolean hasEndpoints(V u, V v)
    • hasEndpoint

      public boolean hasEndpoint(V u)
    • getWeight

      public abstract float getWeight()
    • setWeight

      public abstract void setWeight(float weight)
    • getInternalNodeA

      protected abstract Node<V> getInternalNodeA()
    • getInternalNodeB

      protected abstract Node<V> getInternalNodeB()
    • set

      protected abstract void set(Node<V> a, Node<V> b, float weight)