INNER CODE UNIT · JavaScript
NetGraph
lh3/pangene · pangene.js:450
class NetGraph {
constructor(g, add_super, ref) {
this.n_node = 0;
this.end_cat = [];
this.arc = [];
this.idx = [];
this.dfs_dis = [];
this.dfs_fin = [];
this.dfs_par = [];
this.gfa = g;
this.add_super = add_super;
this.ref = typeof ref == "string"? ref : null;
this.#convert_gfa();
}
#convert_gfa() {
const g = this.gfa;
const n_vtx = g.seg.length * 2;
// collect "link" edges