Class AbstractEdge<V extends Vertex>

  • All Implemented Interfaces:
    Edge<V>

    public abstract class AbstractEdge<V extends Vertex>
    extends Object
    implements Edge<V>
    Abstract graph edge implementation.
    • Constructor Detail

      • AbstractEdge

        public AbstractEdge​(V src,
                            V dst)
        Creates a new edge between the specified source and destination vertexes.
        Parameters:
        src - source vertex
        dst - destination vertex
    • Method Detail

      • src

        public V src()
        Description copied from interface: Edge
        Returns the edge source vertex.
        Specified by:
        src in interface Edge<V extends Vertex>
        Returns:
        source vertex
      • dst

        public V dst()
        Description copied from interface: Edge
        Returns the edge destination vertex.
        Specified by:
        dst in interface Edge<V extends Vertex>
        Returns:
        destination vertex
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object