de.cau.cs.kieler.klay.layered.graph
Class LGraphElement
java.lang.Object
de.cau.cs.kieler.core.properties.MapPropertyHolder
de.cau.cs.kieler.klay.layered.graph.LGraphElement
- All Implemented Interfaces:
- IPropertyHolder, Comparable<LGraphElement>
- Direct Known Subclasses:
- Layer, LayeredGraph, LEdge, LShape
public abstract class LGraphElement
- extends MapPropertyHolder
- implements Comparable<LGraphElement>
Abstract superclass for the layers, nodes, ports, and edges of a layered graph.
- Rating

Field Summary |
int |
id
Identifier value, may be arbitrarily used by algorithms. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
id
public int id
- Identifier value, may be arbitrarily used by algorithms.
LGraphElement
public LGraphElement()
compareTo
public int compareTo(LGraphElement other)
- Compares this with another Object.
Returns -1 if this object is smaller,
0 if both objects are equal and
1 if this object is bigger.
- Specified by:
compareTo
in interface Comparable<LGraphElement>
- Parameters:
other
- the object to compare with
- Returns:
- one of the values -1, 0, 1