public class

BreadthFirstSearch.Iterator

extends Object
implements Iterator<E>
java.lang.Object
   ↳ es.usc.citius.hipster.algorithm.BreadthFirstSearch.Iterator

Class Overview

Implements all the BFS search logic as an iterator

Summary

Fields
protected Queue<N extends Node<A, S, N>> queue
protected Map<S, N extends Node<A, S, N>> visited
Protected Constructors
BreadthFirstSearch.Iterator()
Iterator cannot be instantiated from outside.
Public Methods
Queue<N> getQueue()
Map<S, N> getVisited()
boolean hasNext()
N next()
void remove()
void setQueue(Queue<N> queue)
void setVisited(Map<S, N> visited)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Iterator

Fields

protected Queue<N extends Node<A, S, N>> queue

protected Map<S, N extends Node<A, S, N>> visited

Protected Constructors

protected BreadthFirstSearch.Iterator ()

Iterator cannot be instantiated from outside. Use iterator() to create a new BFS iterator.

Public Methods

public Queue<N> getQueue ()

public Map<S, N> getVisited ()

public boolean hasNext ()

public N next ()

public void remove ()

public void setQueue (Queue<N> queue)

public void setVisited (Map<S, N> visited)