org.graffiti.graph
Class FastNode

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.FastNode
All Implemented Interfaces:
Attributable, GraphElement, Node, MultiLinkable<FastNode,Void>

public class FastNode
extends AbstractNode
implements MultiLinkable<FastNode,Void>

Version:
$Revision: 5767 $ $Date: 2006-07-21 15:49:46 +0200 (Fr, 21 Jul 2006) $
Author:
Michael Forster

Constructor Summary
FastNode(Graph graph)
           
FastNode(Graph graph, CollectionAttribute coll)
           
 
Method Summary
 void addEdge(org.graffiti.graph.FastEdge.Incidency incidency, FastEdge edge)
           
 Collection<Edge> getAllInEdges()
          Union of getDirectedInEdges() and getUndirectedEdges() .
 Collection<Edge> getAllOutEdges()
          Union of getDirectedOutEdges() and getUndirectedEdges() .
 Collection<Edge> getDirectedInEdges()
          Returns a collection containing the directed, ingoing edges of the Node.
 Iterator<Edge> getDirectedInEdgesIterator()
          Returns an iterator containing the directed ingoing edges of the Node.
 Collection<Edge> getDirectedOutEdges()
          Returns a collection containing the directed outgoing edges of the Node.
 Iterator<Edge> getDirectedOutEdgesIterator()
          Returns an iterator containing the outgoing directed edges of the Node.
 Collection<Edge> getEdges()
          Returns a collection containing all the ingoing and outgoing directed and undirected edges of the current Node.
 Iterator<Edge> getEdgesIterator()
          Returns an iterator containing all the ingoing and outgoing directed and undirected edges of the current Node.
 MultiLinkNode<FastNode> getLinkNode(Void v)
          Returns the link node corresponding to the list identified by the given link type.
 Collection<Edge> getUndirectedEdges()
          Returns a collection containing the undirected edges of the Node.
 Iterator<Edge> getUndirectedEdgesIterator()
          Returns an iterator containing all undirected edges of the Node.
 void removeEdge(org.graffiti.graph.FastEdge.Incidency incidency, FastEdge edge)
           
 void setLinkNode(Void v, MultiLinkNode<FastNode> l)
          Sets the link node corresponding to the list identified by the given link type.
 
Methods inherited from class org.graffiti.graph.AbstractNode
getAllInNeighbors, getAllOutNeighbors, getInDegree, getInNeighbors, getInNeighborsIterator, getNeighbors, getNeighborsIterator, getOutDegree, getOutNeighbors, getOutNeighborsIterator, 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.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
 

Constructor Detail

FastNode

public FastNode(Graph graph)
Parameters:
graph -

FastNode

public FastNode(Graph graph,
                CollectionAttribute coll)
Parameters:
graph -
coll -
Method Detail

addEdge

public void addEdge(org.graffiti.graph.FastEdge.Incidency incidency,
                    FastEdge edge)

getAllInEdges

public Collection<Edge> getAllInEdges()
Description copied from interface: Node
Union of getDirectedInEdges() and getUndirectedEdges() .

Specified by:
getAllInEdges in interface Node
Overrides:
getAllInEdges in class AbstractNode
Returns:
Collection
See Also:
Node.getAllInEdges()

getAllOutEdges

public Collection<Edge> getAllOutEdges()
Description copied from interface: Node
Union of getDirectedOutEdges() and getUndirectedEdges() .

Specified by:
getAllOutEdges in interface Node
Overrides:
getAllOutEdges in class AbstractNode
Returns:
Collection
See Also:
Node.getAllOutEdges()

getDirectedInEdges

public Collection<Edge> getDirectedInEdges()
Description copied from class: AbstractNode
Returns a collection containing the directed, ingoing edges of the Node.

Specified by:
getDirectedInEdges in interface Node
Overrides:
getDirectedInEdges in class AbstractNode
Returns:
a collection containing the directed, ingoing edges of the Node.

getDirectedInEdgesIterator

public Iterator<Edge> getDirectedInEdgesIterator()
Description copied from interface: Node
Returns an iterator containing the directed ingoing edges of the Node.

Specified by:
getDirectedInEdgesIterator in interface Node
Returns:
an iterator containing the directed ingoing edges of the Node.

getDirectedOutEdges

public Collection<Edge> getDirectedOutEdges()
Description copied from class: AbstractNode
Returns a collection containing the directed outgoing edges of the Node.

Specified by:
getDirectedOutEdges in interface Node
Overrides:
getDirectedOutEdges in class AbstractNode
Returns:
a collection containing the directed outgoing edges of the Node.

getDirectedOutEdgesIterator

public Iterator<Edge> getDirectedOutEdgesIterator()
Description copied from interface: Node
Returns an iterator containing the outgoing directed edges of the Node.

Specified by:
getDirectedOutEdgesIterator in interface Node
Returns:
an iterator containing the outgoing directed edges of the Node.

getEdges

public Collection<Edge> getEdges()
Description copied from class: AbstractNode
Returns a collection containing all the ingoing and outgoing directed and undirected edges of the current Node. Ingoing and outgoing edges will not be separated and there will be no ordering on the collection.

Specified by:
getEdges in interface Node
Overrides:
getEdges in class AbstractNode
Returns:
a collection containing all ingoing and outgoing directed and undirected edges of the current Node.

getEdgesIterator

public Iterator<Edge> getEdgesIterator()
Description copied from interface: Node
Returns an iterator containing all the ingoing and outgoing directed and undirected edges of the current Node. Ingoing and outgoing edges will not be separated and there will be no ordering on the collection.

Specified by:
getEdgesIterator in interface Node
Returns:
an iterator containing all ingoing and outgoing directed and undirected edges of the current Node.

getLinkNode

public MultiLinkNode<FastNode> getLinkNode(Void v)
Description copied from interface: MultiLinkable
Returns the link node corresponding to the list identified by the given link type.

Specified by:
getLinkNode in interface MultiLinkable<FastNode,Void>
Parameters:
v - Identification of the respective list.
Returns:
The corresponding link node.

getUndirectedEdges

public Collection<Edge> getUndirectedEdges()
Description copied from class: AbstractNode
Returns a collection containing the undirected edges of the Node.

Specified by:
getUndirectedEdges in interface Node
Overrides:
getUndirectedEdges in class AbstractNode
Returns:
a collection containing the undirected edges of the Node.

getUndirectedEdgesIterator

public Iterator<Edge> getUndirectedEdgesIterator()
Description copied from interface: Node
Returns an iterator containing all undirected edges of the Node.

Specified by:
getUndirectedEdgesIterator in interface Node
Returns:
an iterator containing all undirected edges of the Node.

removeEdge

public void removeEdge(org.graffiti.graph.FastEdge.Incidency incidency,
                       FastEdge edge)

setLinkNode

public void setLinkNode(Void v,
                        MultiLinkNode<FastNode> l)
Description copied from interface: MultiLinkable
Sets the link node corresponding to the list identified by the given link type.

Specified by:
setLinkNode in interface MultiLinkable<FastNode,Void>
Parameters:
v - Identification of the respective list.
l - The corresponding link node.


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