public class Path
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
do2Opt() |
int |
getAt(int n) |
int |
getCount() |
double |
getLength() |
int[] |
getPath() |
static Path |
getRandomTour(Graph m) |
static Path |
getRegularTour(Graph m) |
boolean |
isOptDone() |
void |
reverse(int startIndex,
int stopIndex) |
void |
setAt(int n,
int val) |
java.lang.String |
toString() |
public int getAt(int n)
public void setAt(int n, int val)
public int getCount()
public int[] getPath()
public double getLength()
public void reverse(int startIndex, int stopIndex)
public boolean isOptDone()
public void do2Opt()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object