Class VEPair<V,​E>

  • Type Parameters:
    V - the vertex type
    E - the edge type

    public class VEPair<V,​E>
    extends java.lang.Object
    Convenience class for associating a vertex and an edge. Used, for example, in contexts in which it is necessary to know the origin for an edge traversal (that is, the direction in which an (undirected) edge is being traversed).
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private E e  
      private V v  
    • Constructor Summary

      Constructors 
      Constructor Description
      VEPair​(V v, E e)
      Creates an instance with the specified vertex and edge
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      E getE()  
      V getV()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • v

        private V v
      • e

        private E e
    • Constructor Detail

      • VEPair

        public VEPair​(V v,
                      E e)
        Creates an instance with the specified vertex and edge
        Parameters:
        v - the vertex to add
        e - the edge to add
    • Method Detail

      • getV

        public V getV()
        Returns:
        the vertex of this pair
      • getE

        public E getE()
        Returns:
        the edge of this pair