![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
edge with all possible attributes that we require ;-) More...
Inheritance diagram for aud.example.graph.MyEdge:
Collaboration diagram for aud.example.graph.MyEdge:Public Member Functions | |
| MyEdge | create () |
| Create new edge instance. More... | |
Public Member Functions inherited from aud.graph.SimpleEdge | |
| SimpleEdge | create () |
| Create new edge instance. More... | |
| String | getLabel () |
get text description or null if there is none More... | |
| void | setLabel (String label) |
set label (default label if label==null) More... | |
| double | getWeight () |
| set edge weight More... | |
| void | setWeight (double w) |
| set weight More... | |
Public Member Functions inherited from aud.graph.AbstractEdge | |
| abstract AbstractEdge | create () |
| Create new edge instance. More... | |
| AbstractGraph<? extends AbstractNode,? extends AbstractEdge > | graph () |
| get graph More... | |
| AbstractNode | source () |
| Get source node. More... | |
| AbstractNode | destination () |
| get destination node More... | |
| boolean | hasWeight () |
| determine if edge weight is defined More... | |
| double | getWeight () |
| set edge weight More... | |
| GraphvizDecorator | getDecorator () |
get decoration or null More... | |
| String | toString () |
| int | compareTo (AbstractEdge other) |
| boolean | equals (Object other) |
| GraphvizDecorator | getDecorator () |
get decoration or null More... | |
Public Attributes | |
| String | color = null |
| color as string More... | |
| double | penwidth = -1.0 |
width for visualization (ignored if <0) More... | |
edge with all possible attributes that we require ;-)
Definition at line 6 of file MyEdge.java.
| MyEdge aud.example.graph.MyEdge.create | ( | ) |
Create new edge instance.
Must initialize any attributes introduced in subclasses of AbstractEdge.
Reimplemented from aud.graph.SimpleEdge.
Definition at line 7 of file MyEdge.java.
| String aud.example.graph.MyEdge.color = null |
color as string
Definition at line 12 of file MyEdge.java.
| double aud.example.graph.MyEdge.penwidth = -1.0 |
width for visualization (ignored if <0)
Definition at line 15 of file MyEdge.java.