public static Builder start ( AlgorithmOptions opts ) { Builder b = new Builder ( ) ; if ( opts . algorithm != null ) b . algorithm ( opts . getAlgorithm ( ) ) ; if ( opts . traversalMode != null ) b . traversalMode ( opts . getTraversalMode ( ) ) ; if ( opts . weighting != null ) b . weighting ( opts . getWeighting ( ) ) ; if ( opts . maxVisitedNodes >= 0 ) b . maxVisitedNodes ( opts . maxVisitedNodes ) ; if ( ! opts . hints . isEmpty ( ) ) b . hints ( opts . hints ) ; return b ; }
This method clones the specified AlgorithmOption object with the possibility for further changes .