Package com.jgalgo.example
Class LowestCommonAncestorExample
java.lang.Object
com.jgalgo.example.LowestCommonAncestorExample
This example demonstrates how to use the lowest common ancestor algorithm.
- Author:
- Barak Ugav
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
This example demonstrates how to use the dynamic lowest common ancestor algorithm.static void
Main function that runs the examples.static void
This example demonstrates how to use the static lowest common ancestor algorithm.
-
Method Details
-
staticLcaExample
public static void staticLcaExample()This example demonstrates how to use the static lowest common ancestor algorithm. -
dynamicLcaExample
public static void dynamicLcaExample()This example demonstrates how to use the dynamic lowest common ancestor algorithm. -
main
Main function that runs the examples.- Parameters:
args
- main args
-