Interface Edge<V,​E>

  • Type Parameters:
    V - the type of the decorated vertex value
    E - the type of the decorated edge value
    All Superinterfaces:
    MetaTagCollection
    All Known Subinterfaces:
    EdgeView<V,​E>
    All Known Implementing Classes:
    AbstractEdge, EdgeImpl, EdgeViewImpl

    public interface Edge<V,​E>
    extends MetaTagCollection

    an edge has a source and a target

    Since:
    1.0
    Author:
    Andreas Schuler
    • Method Detail

      • getSource

        Vertex<V,​E> getSource()
        get the source of the edge
        Returns:
        the source
      • getTarget

        Vertex<V,​E> getTarget()
        get the target of the edge
        Returns:
        the target
      • getWeight

        double getWeight()
        Returns the weight of the edge
        Returns:
        the weight of the edge
      • getElement

        E getElement()
        Returns the element associated with the edge
        Returns:
        the element associated with the edge, or null if not present