INNER CODE UNIT · JavaScript

w

lh3/pangene · pangene.js:290

			const w = this.arc[off_v + i].w;
			a.push(w);
			const off_w = this.idx[w^1].o, n_w = this.idx[w^1].n;
			for (let j = 0; j < n_w; ++j) {
				const u = this.arc[off_w + j].w;
				if (u != (v^1)) a.push(u);
			}
		}
		if (a.length == 0) return [];
		a.sort();
		let k = 0;
		for (let i = 1; i < a.length; ++i)
			if (a[i] != a[k]) a[++k] = a[i];
		a.length = k + 1;
		return a;
	}
	get_bubble_all(max_ext) {
		// initialize cec_par[]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…