public class Arc extends org.jgrapht.graph.DefaultWeightedEdge implements IndexedObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Arc.ArcFacroty |
| Modifier and Type | Field and Description |
|---|---|
double |
cost |
Node |
dest |
int |
id |
Node |
orig |
int |
value |
| Constructor and Description |
|---|
Arc(Node orig,
Node dest,
int value) |
Arc(Node orig,
Node dest,
int value,
int id,
double cost) |
| Modifier and Type | Method and Description |
|---|---|
Arc |
clone() |
int |
getObjectIdx() |
double |
getWeight() |
void |
setId(int id) |
String |
toString() |
public int id
public Node orig
public Node dest
public int value
public double cost
public double getWeight()
getWeight in class org.jgrapht.graph.DefaultWeightedEdgepublic String toString()
toString in class org.jgrapht.graph.DefaultEdgepublic final void setId(int id)
public int getObjectIdx()
getObjectIdx in interface IndexedObjectpublic Arc clone()
clone in interface IndexedObjectclone in class org.jgrapht.graph.DefaultEdgeCopyright © 2017. All rights reserved.