Class BfsDfsExample

java.lang.Object
com.jgalgo.example.BfsDfsExample

public class BfsDfsExample extends Object
This example demonstrates how to use the BFS and DFS algorithms.
Author:
Barak Ugav
  • Method Details Link icon

    • bfsExample Link icon

      public static void bfsExample()
      This example demonstrates how to use the BFS algorithm.
    • dfsExample Link icon

      public static void dfsExample()
      This example demonstrates how to use the DFS algorithm.
    • main Link icon

      public static void main(String[] args)
      Main function that runs the examples.
      Parameters:
      args - main args