org.graphstream.graph
Class BreadthFirstIterator<T extends Node>

java.lang.Object
  extended by org.graphstream.graph.BreadthFirstIterator<T>
All Implemented Interfaces:
Iterator<T>

public class BreadthFirstIterator<T extends Node>
extends Object
implements Iterator<T>


Constructor Summary
BreadthFirstIterator(Node startNode)
           
BreadthFirstIterator(Node startNode, boolean directed)
           
 
Method Summary
 int getDepthMax()
           
 int getDepthOf(Node node)
           
 boolean hasNext()
           
 boolean isDirected()
           
 T next()
           
 void remove()
           
 boolean tabu(Node node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BreadthFirstIterator

public BreadthFirstIterator(Node startNode,
                            boolean directed)

BreadthFirstIterator

public BreadthFirstIterator(Node startNode)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<T extends Node>

next

public T next()
Specified by:
next in interface Iterator<T extends Node>

remove

public void remove()
Specified by:
remove in interface Iterator<T extends Node>

getDepthOf

public int getDepthOf(Node node)

getDepthMax

public int getDepthMax()

tabu

public boolean tabu(Node node)

isDirected

public boolean isDirected()


Copyright © 2012. All Rights Reserved.