V
- the graph vertex typePair
@Deprecated public class VertexPair<V> extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
protected V |
n1
Deprecated.
|
protected V |
n2
Deprecated.
|
Constructor and Description |
---|
VertexPair(V n1,
V n2)
Deprecated.
Create a new vertex pair
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
elementEquals(V element1,
V element2)
Deprecated.
Compares two elements.
|
boolean |
equals(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.
|
String |
toString()
Deprecated.
|
public V getFirst()
public V getSecond()
public boolean hasVertex(V v)
v
- The vertex in questionpublic V getOther(V one)
one
- one of the verticesprotected boolean elementEquals(V element1, V element2)
element1
- the first elementelement2
- the second elementCopyright © 2017. All rights reserved.