Package org.drip.graph.search
Class BreadthFirst
java.lang.Object
org.drip.graph.search.BreadthFirst
public class BreadthFirst
extends java.lang.Object
BreadthFirst implements the Iterative Breadth-first Search Schemes. The References are:
- Aziz, A., and A. Prakash (2010): Algorithms for Interviews http://users.ece.utexas.edu/~adnan/afi-samples-new.pdf
- Coppin, B. (2004): Artificial Intelligence Illuminated Jones and Bartlett Learning
- Cormen, T., C. E. Leiserson, R. Rivest, and C. Stein (2009): Introduction to Algorithms 3rd Edition MIT Press
- Russell, S., and P. Norvig (2003): Artificial Intelligence: Modern Approach 2nd Edition Prentice Hall
- Wikipedia (2020): Breadth-first Search https://en.wikipedia.org/wiki/Breadth-first_search
- Module = Computational Core Module
- Library = Graph Algorithm Library
- Project = Graph Optimization and Tree Construction Algorithms
- Package = BFS, DFS, and Ordered Vertexes
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description BreadthFirst(Network<?> network)
BreadthFirst Constructor -
Method Summary
Modifier and Type Method Description Network<?>
network()
Retrieve the Graph Networkboolean
nonRecursive(java.lang.String vertexName, OrderedVertexGroup orderedVertexGroup)
Generate the Vertex Set using a Non-recursive Breadth-First SearchMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BreadthFirst
BreadthFirst Constructor- Parameters:
network
- Graph Network- Throws:
java.lang.Exception
- Thrown if the Inputs are Invalid
-
-
Method Details
-
network
Retrieve the Graph Network- Returns:
- The Graph Network
-
nonRecursive
Generate the Vertex Set using a Non-recursive Breadth-First Search- Parameters:
vertexName
- Vertex NameorderedVertexGroup
- The Ordered Vertex Group- Returns:
- The Vertex Set using a Non-recursive Breadth-First Search
-