public class InfoPath
extends java.lang.Object
Constructor and Description |
---|
InfoPath(int p,
int d)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getDistance()
Returns the distance with the first node
|
int |
getPred()
Returns the predecessor
|
void |
setDistance(int distance)
Sets the distance with the first node
|
void |
setPred(int father)
Sets the predecessor
|
java.lang.String |
toString() |
public InfoPath(int p, int d)
p
- the the predecessor vertexd
- the distance with the first vertexpublic int getPred()
public void setPred(int father)
father
- the position of the predecessorpublic int getDistance()
public void setDistance(int distance)
distance
- the distance with the first nodepublic java.lang.String toString()
toString
in class java.lang.Object