org.jgrapht.util
Class VertexPair<V>
- java.lang.Object
-
- org.jgrapht.util.VertexPair<V>
-
- Type Parameters:
V- the graph vertex type
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- UnorderedVertexPair
Deprecated.in favor ofPair
@Deprecated public class VertexPair<V> extends java.lang.Object implements java.io.SerializableRepresentation 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 booleanequals(java.lang.Object o)Deprecated.VgetFirst()Deprecated.Get the first vertex of the pairVgetOther(V one)Deprecated.Given on of the vertices of the pair, get the other.VgetSecond()Deprecated.Get the second vertex of the pairinthashCode()Deprecated.booleanhasVertex(V v)Deprecated.Assess if this pair contains the vertex.java.lang.StringtoString()Deprecated.
-
-
-
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:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCodein classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG