Class AbstractEdge<V extends Vertex>

  • All Implemented Interfaces:
    Edge<V>

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

      Constructors 
      Constructor Description
      AbstractEdge​(V src, V dst)
      Creates a new edge between the specified source and destination vertexes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V dst()
      Returns the edge destination vertex.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      V src()
      Returns the edge source vertex.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object