- All Superinterfaces:
- com.port80.util.attr.IAttrTable, IGraphElement
- public interface IEdge
- extends IGraphElement
Graph edge interface.
. Each edge has a name, a head node, a tail node and an attribute
table. For directed graph, head is the destination node (one
with arrow head) and tail is the source node.
. Edges are created and destroyed by EdgeFactory or its
derivatives. Creating an edge automatically perform all the book
keeping works to check for validity and connect the two vertex
(adding the edge to both vertex). If an edge is not valid,
EdgeFactory return null. Destroy an edge remove the connections
at both vertex.
. Attribute registry
The EdgeFactory maintain a registry of valid attributes for
edges produced by the factory. Clients that invent their own
attributes should register the attribute name with the class and
check for conflicts during initialization.
. No checking for valid attribute name is done when accessing the
attribute table.
| Methods inherited from interface com.port80.util.attr.IAttrTable |
attrKeySet, clearAttrs, getAttr, getAttrAsString, getAttrBool, getAttrBool, getAttrCached, getAttrDouble, getAttrDouble, getAttrFloat, getAttrFloat, getAttrInt, getAttrInt, getAttrLong, getAttrLong, getAttrRegistry, getAttrString, hasAttr, removeAttr, removeUnregisteredAttrs, setAttr, setAttr, setAttr, setAttr, setAttr, setAttr, setAttrFromString |
getHead
public IVertex getHead()
- The set of all edges, the Set should be considered read only.
Add or remove of edges should use method provided by the Edge
class.
getTail
public IVertex getTail()
getOpposite
public IVertex getOpposite(IVertex node)
getArrowSize
public double getArrowSize()
getHeadArrow
public IArrow getHeadArrow()
getTailArrow
public IArrow getTailArrow()
findReverseEdges
public java.util.List findReverseEdges(java.util.List ret)
clearLayout
public void clearLayout()