public class BreadthFirstSearch
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Graph |
graph
Graph to be traversed.
|
private Solutions |
solutions
Solutions of the graph containing repetition count.
|
Constructor and Description |
---|
BreadthFirstSearch(Graph inputGraph,
Solutions solutions)
Initialize a BFS object.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Actor> |
getBfsActorList()
Gets a list of actors which if we sequentially access then we are
essentially accessing them in breadth first fashion.
|
private Graph graph
private Solutions solutions
public java.util.List<Actor> getBfsActorList()