public class Edge
extends java.lang.Object
Constructor and Description |
---|
Edge()
Instantiates a new edge.
|
Edge(int id)
Instantiates a new edge.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStringID()
Gets the string ID.
|
double |
getWeight()
Gets the weight.
|
static void |
reset()
Reset.
|
void |
setWeight(double w)
Sets the weight.
|
java.lang.String |
toString() |
public Edge()
public Edge(int id)
id
- the idpublic java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getStringID()
public double getWeight()
public void setWeight(double w)
w
- the new weightpublic static void reset()