org.graphstream.graph.implementations
Class SingleNode

java.lang.Object
  extended by org.graphstream.graph.implementations.AbstractElement
      extended by org.graphstream.graph.implementations.AbstractNode
          extended by org.graphstream.graph.implementations.AdjacencyListNode
              extended by org.graphstream.graph.implementations.SingleNode
All Implemented Interfaces:
Iterable<Edge>, Element, Node

public class SingleNode
extends AdjacencyListNode

Nodes used with SingleGraph


Nested Class Summary
 
Nested classes/interfaces inherited from class org.graphstream.graph.implementations.AbstractElement
AbstractElement.AttributeChangeEvent
 
Method Summary
<T extends Node>
Iterator<T>
getNeighborNodeIterator()
          This implementation uses AbstractNode.getEdgeIterator() and stores the visited nodes in a set.
 
Methods inherited from class org.graphstream.graph.implementations.AdjacencyListNode
getDegree, getEdge, getEdgeBetween, getEdgeFrom, getEdgeIterator, getEdgeToward, getEnteringEdge, getEnteringEdgeIterator, getInDegree, getLeavingEdge, getLeavingEdgeIterator, getOutDegree
 
Methods inherited from class org.graphstream.graph.implementations.AbstractNode
getBreadthFirstIterator, getBreadthFirstIterator, getDepthFirstIterator, getDepthFirstIterator, getEachEdge, getEachEnteringEdge, getEachLeavingEdge, getEdgeBetween, getEdgeBetween, getEdgeFrom, getEdgeFrom, getEdgeSet, getEdgeToward, getEdgeToward, getEnteringEdgeSet, getGraph, getLeavingEdgeSet, hasEdgeBetween, hasEdgeBetween, hasEdgeBetween, hasEdgeFrom, hasEdgeFrom, hasEdgeFrom, hasEdgeToward, hasEdgeToward, hasEdgeToward, isEnteringEdge, isIncidentEdge, isLeavingEdge, iterator
 
Methods inherited from class org.graphstream.graph.implementations.AbstractElement
addAttribute, addAttributes, changeAttribute, clearAttributes, getArray, getAttribute, getAttribute, getAttributeCount, getAttributeKeyIterator, getAttributeKeySet, getEachAttributeKey, getFirstAttributeOf, getFirstAttributeOf, getHash, getId, getIndex, getLabel, getNumber, getVector, hasArray, hasAttribute, hasAttribute, hasHash, hasLabel, hasNumber, hasVector, removeAttribute, setAttribute, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.graphstream.graph.Node
toString
 
Methods inherited from interface org.graphstream.graph.Element
addAttribute, addAttributes, changeAttribute, clearAttributes, getArray, getAttribute, getAttribute, getAttributeCount, getAttributeKeyIterator, getAttributeKeySet, getFirstAttributeOf, getFirstAttributeOf, getHash, getId, getIndex, getLabel, getNumber, getVector, hasArray, hasAttribute, hasAttribute, hasHash, hasLabel, hasNumber, hasVector, removeAttribute, setAttribute
 

Method Detail

getNeighborNodeIterator

public <T extends Node> Iterator<T> getNeighborNodeIterator()
Description copied from class: AbstractNode
This implementation uses AbstractNode.getEdgeIterator() and stores the visited nodes in a set. In this way it ensures that each neighbor will be visited exactly once, even in multi-graph.

Specified by:
getNeighborNodeIterator in interface Node
Overrides:
getNeighborNodeIterator in class AbstractNode
Returns:
The iterator, neighbors are iterated in arbitrary order.
See Also:
Node.getNeighborNodeIterator()


Copyright © 2012. All Rights Reserved.