Class AbstractEdge<V,​E>

  • Type Parameters:
    V - the type of the decorated vertex value
    E - the type of the decorated edge value
    All Implemented Interfaces:
    Edge<V,​E>, MetaTagCollection
    Direct Known Subclasses:
    EdgeImpl, EdgeViewImpl

    public abstract class AbstractEdge<V,​E>
    extends MetaTagCollectionImpl
    implements Edge<V,​E>

    Abstract base class to be used for different edge implementation, that are based on a graph state.

    Since:
    1.0
    Author:
    Andreas Pointner
    • Constructor Detail

      • AbstractEdge

        public AbstractEdge()
    • Method Detail

      • getSource

        public Vertex<V,​E> getSource()
        Description copied from interface: Edge
        get the source of the edge
        Specified by:
        getSource in interface Edge<V,​E>
        Returns:
        the source
      • getTarget

        public Vertex<V,​E> getTarget()
        Description copied from interface: Edge
        get the target of the edge
        Specified by:
        getTarget in interface Edge<V,​E>
        Returns:
        the target