Documentation of 'org.jgrapht.util.VertexPair' Java class
VertexPair
org.jgrapht.util

Class VertexPair<V>

  • Type Parameters:
    V - the graph vertex type
    All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    UnorderedVertexPair

    Deprecated. 
    in favor of Pair

    @Deprecated
    public class VertexPair<V>
    extends java.lang.Object
    implements java.io.Serializable
    Representation of a pair of vertices; to be replaced by Pair<V,V> if Sun ever gets around to adding Pair to java.util.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      VertexPair(V n1, V n2)
      Deprecated. 
      Create a new vertex pair
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object o)
      Deprecated. 
       
      V getFirst()
      Deprecated. 
      Get the first vertex of the pair
      V getOther(V one)
      Deprecated. 
      Given on of the vertices of the pair, get the other.
      V getSecond()
      Deprecated. 
      Get the second vertex of the pair
      int hashCode()
      Deprecated. 
       
      boolean hasVertex(V v)
      Deprecated. 
      Assess if this pair contains the vertex.
      java.lang.String toString()
      Deprecated. 
       
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • VertexPair

        public VertexPair(V n1,
                          V n2)
        Deprecated. 
        Create a new vertex pair
        Parameters:
        n1 - the first vertex
        n2 - the second vertex
    • Method Detail

      • getFirst

        public V getFirst()
        Deprecated. 
        Get the first vertex of the pair
        Returns:
        the first vertex of the pair
      • getSecond

        public V getSecond()
        Deprecated. 
        Get the second vertex of the pair
        Returns:
        the second vertex of the pair
      • hasVertex

        public boolean hasVertex(V v)
        Deprecated. 
        Assess if this pair contains the vertex.
        Parameters:
        v - The vertex in question
        Returns:
        true if contains, false otherwise
      • getOther

        public V getOther(V one)
        Deprecated. 
        Given on of the vertices of the pair, get the other.
        Parameters:
        one - one of the vertices
        Returns:
        the other vertex of the pair
      • toString

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

        public boolean equals(java.lang.Object o)
        Deprecated. 
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Deprecated. 
        Overrides:
        hashCode in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.