org.graffiti.plugins.algorithms.generators
Class ExtendedAdjListNode

java.lang.Object
  extended by org.graffiti.attributes.AbstractAttributable
      extended by org.graffiti.graph.AbstractGraphElement
          extended by org.graffiti.graph.AbstractNode
              extended by org.graffiti.graph.AdjListNode
                  extended by org.graffiti.plugins.algorithms.generators.ExtendedAdjListNode
All Implemented Interfaces:
Attributable, GraphElement, Node

public class ExtendedAdjListNode
extends AdjListNode

This class extends the AdjListNode. The inserting of edges to a node's internal edge lists is extended. Edges can be inserted at specified positions now relatively to another edge.

Version:
$1.0$ $3.9.2005$
Author:
$Marek Piorkowski$

Field Summary
static int AFTER
          An edge's position in an edge's list.
static int BEFORE
          An edge's position in an edge's list.
static int LAST
          An edge's position in an edge's list.
 
Method Summary
 void addInEdgeAt(AdjListEdge edge, AdjListEdge positionEdge, int position)
          Adds a new ingoing Edge to the corresponding Edge list.
 
Methods inherited from class org.graffiti.graph.AdjListNode
getDirectedInEdgesIterator, getDirectedOutEdgesIterator, getEdgesIterator, getInDegree, getOutDegree, getUndirectedEdgesIterator
 
Methods inherited from class org.graffiti.graph.AbstractNode
getAllInEdges, getAllInNeighbors, getAllOutEdges, getAllOutNeighbors, getDirectedInEdges, getDirectedOutEdges, getEdges, getInNeighbors, getInNeighborsIterator, getNeighbors, getNeighborsIterator, getOutNeighbors, getOutNeighborsIterator, getUndirectedEdges, getUndirectedNeighbors
 
Methods inherited from class org.graffiti.graph.AbstractGraphElement
getGraph, getListenerManager, remove, toString
 
Methods inherited from class org.graffiti.attributes.AbstractAttributable
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, getLong, getShort, getString, removeAttribute, setBoolean, setByte, setDouble, setFloat, setInteger, setLong, setShort, setString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.graffiti.graph.Node
getAllInEdges, getAllInNeighbors, getAllOutEdges, getAllOutNeighbors, getDirectedInEdges, getDirectedOutEdges, getEdges, getInNeighbors, getInNeighborsIterator, getNeighbors, getNeighborsIterator, getOutNeighbors, getOutNeighborsIterator, getUndirectedEdges, getUndirectedNeighbors
 
Methods inherited from interface org.graffiti.graph.GraphElement
getGraph, remove
 
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
 

Field Detail

BEFORE

public static final int BEFORE
An edge's position in an edge's list.

See Also:
Constant Field Values

AFTER

public static final int AFTER
An edge's position in an edge's list.

See Also:
Constant Field Values

LAST

public static final int LAST
An edge's position in an edge's list.

See Also:
Constant Field Values
Method Detail

addInEdgeAt

public void addInEdgeAt(AdjListEdge edge,
                        AdjListEdge positionEdge,
                        int position)
Adds a new ingoing Edge to the corresponding Edge list. Informs the ListenerManageer about the change. The new edge is positioned as specified at the parameter position relatively to the Edge positionEdge.

Parameters:
edge - the Edge to be added.
positionEdge - The position of Edge edge is set relatively to this positionEdge.
position - The position the Edge edge.


Generated at 2012-05-30 11:01:25 PM CEST