53 throw new UnsupportedOperationException(
"'setWeight' undefined");
79 (text!=
null ?
"["+text+
"] " :
" ")+
84 if (graph_!=other.graph_)
85 throw new UnsupportedOperationException();
87 return c!=0 ? c : dst_.
compareTo(other.dst_);
89 @Override
public boolean equals(Object other) {
Interface to edges of a graph.
AbstractNode source()
Get source node.
GraphvizDecorator getDecorator()
get decoration or null
String getLabel()
get text description or null if there is none
abstract AbstractEdge create()
Create new edge instance.
void setWeight(double w)
set weight
boolean hasWeight()
determine if edge weight is defined
int compareTo(AbstractEdge other)
AbstractGraph<? extends AbstractNode,? extends AbstractEdge > graph()
get graph
AbstractNode destination()
get destination node
double getWeight()
set edge weight
boolean equals(Object other)
GraphvizDecorator getDecorator()
get decoration or null
abstract boolean isDirected()
Is graph directed?
Interface to nodes of a graph.
int compareTo(AbstractNode other)
Decorator for items of Graphvizable objects.
Interface for decorating items of Graphvizable objects.
utilities (not related to AuD lecture)
AuD lecture: Data structures, algorithms, examples.