Interface Edge

All Superinterfaces:
GraphElement
All Known Implementing Classes:
EgressEdge, GraphEdge, HiddenEdge, IngressEdge

public interface Edge extends GraphElement
  • Method Details

    • getDestination

      Node getDestination()
    • getSource

      Node getSource()
    • setDestination

      void setDestination(Node n)
    • setSource

      void setSource(Node n)
    • getWeight

      double getWeight()
    • copy

      Edge copy()
    • get

      Node get(Node n)
      Returns null if the edge does not contain n. Returns the source if n is the destination. Returns the destination if n is the source.
      Parameters:
      n - the node of the edge not to return.