Class BFSTraversal<V>
java.lang.Object
org.episteme.core.mathematics.discrete.graph.BFSTraversal<V>
- All Implemented Interfaces:
GraphTraversalStrategy<V>
Breadth-First Search (BFS) traversal strategy.
Explores neighbors level by level before moving to the next depth. Uses CPU-based queue implementation.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Details
-
BFSTraversal
public BFSTraversal()
-
-
Method Details
-
traverse
Description copied from interface:GraphTraversalStrategyTraverses the graph starting from the given vertex.The implementation chooses the appropriate backend automatically (CPU or GPU) based on graph size and backend availability.
- Specified by:
traversein interfaceGraphTraversalStrategy<V>- Parameters:
graph- the graph to traversestart- the starting vertexvisitor- the visitor to call for each vertex
-