Package graph

Interface Edge<VertexType>

All Known Implementing Classes:
MazeGraph.MazeEdge

public interface Edge<VertexType>
Represents a weighted, directed edge between two vertices of type `VertexType` in a graph.
  • Method Summary

    Modifier and Type
    Method
    Description
    dst()
    Return the vertex that this edge leads to (the "destination" vertex).
    src()
    Return the vertex that this edge leaves from (the "source" vertex).
    double
    Return the weight of this edge.
  • Method Details

    • src

      VertexType src()
      Return the vertex that this edge leaves from (the "source" vertex).
    • dst

      VertexType dst()
      Return the vertex that this edge leads to (the "destination" vertex).
    • weight

      double weight()
      Return the weight of this edge.