Package com.jgalgo

Class JGAlgoConfig


  • public class JGAlgoConfig
    extends Object
    A global configuration class.
    Author:
    Barak Ugav
    • Method Detail

      • setParallelByDefault

        public static void setParallelByDefault​(boolean enable)
        Enable/disable default parallel computations in all algorithms.
        Parameters:
        enable - if true, some algorithm will use parallel computations by default
      • getOption

        public static <O> Supplier<O> getOption​(String key)
        Get a supplier of an option value.

        Internal use only; do not use this method directly.

        Type Parameters:
        O - the option value type
        Parameters:
        key - the option key
        Returns:
        supplier that can be used multiple times to retrieve the most updated option value