/// Initialize algorithm with given capacity and cost function.
Initialize algorithm with given capacity and cost function.
Initialize algorithm with given capacity and cost function .
pub fn with_capacity(m: usize, cost: F) -> Self {
        let get_vec = || Vec::with_capacity(m + 1);
        Ukkonen {
            D: [get_vec(), get_vec()],
            cost,
        }
    }
pub fn with_capacity ( m : usize , cost : F ) -> Self { let get_vec = | | Vec :: with_capacity ( m + 1 ) ; Ukkonen { D : [ get_vec ( ) , get_vec ( ) ] , cost , } }
Initialize algorithm with given capacity and cost function.
Initialize algorithm with given capacity and cost function .
m
usize
cost
F