Class LowestCommonAncestorExample

java.lang.Object
com.jgalgo.example.LowestCommonAncestorExample

public class LowestCommonAncestorExample extends Object
This example demonstrates how to use the lowest common ancestor algorithm.
Author:
Barak Ugav
  • Method Details Link icon

    • staticLcaExample Link icon

      public static void staticLcaExample()
      This example demonstrates how to use the static lowest common ancestor algorithm.
    • dynamicLcaExample Link icon

      public static void dynamicLcaExample()
      This example demonstrates how to use the dynamic lowest common ancestor algorithm.
    • main Link icon

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