AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
aud.example.graph.MyEdge Class Reference

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 AbstractEdgegraph ()
 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...
 

Detailed Description

edge with all possible attributes that we require ;-)

Definition at line 6 of file MyEdge.java.

Member Function Documentation

◆ create()

MyEdge aud.example.graph.MyEdge.create ( )

Create new edge instance.

Must initialize any attributes introduced in subclasses of AbstractEdge.

Returns
edge instance

Reimplemented from aud.graph.SimpleEdge.

Definition at line 7 of file MyEdge.java.

7 { // DON'T FORGET THIS !!!
8 return new MyEdge();
9 }

Member Data Documentation

◆ color

String aud.example.graph.MyEdge.color = null

color as string

Definition at line 12 of file MyEdge.java.

◆ penwidth

double aud.example.graph.MyEdge.penwidth = -1.0

width for visualization (ignored if <0)

Definition at line 15 of file MyEdge.java.


The documentation for this class was generated from the following file: