Package com.jgalgo.example
Class BfsDfsExample
java.lang.Object
com.jgalgo.example.BfsDfsExample
This example demonstrates how to use the BFS and DFS algorithms.
- Author:
- Barak Ugav
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis example demonstrates how to use the BFS algorithm.static voidThis example demonstrates how to use the DFS algorithm.static voidMain function that runs the examples.
-
Method Details
-
bfsExample
public static void bfsExample()This example demonstrates how to use the BFS algorithm. -
dfsExample
public static void dfsExample()This example demonstrates how to use the DFS algorithm. -
main
Main function that runs the examples.- Parameters:
args- main args
-