7 double weight_ = Double.NaN;
13 return label_==
null ? super.getLabel() : label_;
17 public void setLabel(String label) { label_=label; }
19 @Override
public double getWeight() {
return weight_; }
20 @Override
public void setWeight(
double w) { weight_=w; }
Interface to edges of a graph.
void setLabel(String label)
set label (default label if label==null)
double getWeight()
set edge weight
void setWeight(double w)
set weight
SimpleEdge create()
Create new edge instance.
String getLabel()
get text description or null if there is none