Interface GraphElement

All Superinterfaces:
All Known Subinterfaces:
Edge, Node
All Known Implementing Classes:
AbstractEdge, AbstractGraphElement, AbstractNode, AdjListEdge, AdjListNode, FastEdge, FastNode

public interface GraphElement
extends Attributable

Interfaces a graph element. A graph element knows the graph it belongs to and can contain attributes.

$Revision: 5767 $
See Also:
Node, Edge

Method Summary
 Graph getGraph()
          Returns the Graph the GraphElement belongs to.
 void remove()
          Removes the GraphElement from the graph.
Methods inherited from interface org.graffiti.attributes.Attributable
addAttribute, addBoolean, addByte, addDouble, addFloat, addInteger, addLong, addShort, addString, changeBoolean, changeByte, changeDouble, changeFloat, changeInteger, changeLong, changeShort, changeString, containsAttribute, getAttribute, getAttributes, getBoolean, getByte, getDouble, getFloat, getInteger, getListenerManager, getLong, getShort, getString, removeAttribute, setBoolean, setByte, setDouble, setFloat, setInteger, setLong, setShort, setString

Method Detail


Graph getGraph()
Returns the Graph the GraphElement belongs to.

the Graph the GraphElement belongs to.


void remove()
Removes the GraphElement from the graph.

Generated at 2012-05-30 11:00:36 PM CEST