29 public int index() {
return index_; }
35 throw new UnsupportedOperationException(
"'setLabel' undefined");
41 throw new UnsupportedOperationException(
"'setPosition' undefined");
53 if (graph_!=other.graph_)
54 throw new UnsupportedOperationException();
55 return index_-other.index_;
57 @Override
public boolean equals(Object other) {
GraphvizDecorator getDecorator()
get decoration or null
Interface to nodes of a graph.
double[] getPosition()
helper for drawing the graph: return {x,y} as array or null
void setPosition(double x, double y)
helper for drawing the graph (if supported)
int compareTo(AbstractNode other)
AbstractGraph<? extends AbstractNode,? extends AbstractEdge > graph()
get graph
void setLabel(String label)
set label (if supported)
String getLabel()
get text description
abstract AbstractNode create()
Create new node instance.
int index()
get index, i.e., unique integer id within graph
GraphvizDecorator getDecorator()
get decoration or null
boolean equals(Object 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.