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() |
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.DefaultWeightedEdge
public String toString()
toString
in class org.jgrapht.graph.DefaultWeightedEdge
public int getObjectIdx()
getObjectIdx
in interface IndexedObject
public Arc clone()
clone
in interface IndexedObject
clone
in class org.jgrapht.graph.DefaultWeightedEdge
Copyright © 2018. All rights reserved.