pub fn get_descendent(
    conn: &Connection,
    id: i64
) -> Result<Vec<Node>, Box<dyn Error>>
Expand description

All direct descendents of the Node, not a recursive fetchall

let path = std::path::PathBuf::from("tests/nwr/");
let conn = intspan::connect_txdb(&path).unwrap();

// Synechococcus phage S
let descendents = intspan::get_descendent(&conn, 375032).unwrap();

assert_eq!(descendents.get(0).unwrap().tax_id, 375033);
assert_eq!(descendents.get(0).unwrap().rank, "no rank");
assert_eq!(descendents.len(), 34);