INNER CODE UNIT · Rust

targets

rlaope/estudy · site/graph/crates/graph-wasm/src/lib.rs:98

    let targets = &csr[n + 1..];
    if targets.iter().any(|&t| t as usize >= n) {
        return false;
    }
    let title_list: Vec<&str> = titles.split('\n').collect();
    if title_list.len() != n {
        return false;
    }
    let cho_list: Vec<&str> = choseong.split('\n').collect();

    let mut nodes = Vec::with_capacity(n);
    let mut radius = Vec::with_capacity(n);
    for i in 0..n {
        let title: String = title_list[i].to_ascii_lowercase();
        let raw_cho = cho_list.get(i).copied().unwrap_or("");
        let cho = if raw_cho.is_empty() {
            to_choseong(&title)
        } else {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…