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

All direct or indirect descendents of the Node. The ID given as argument is included in the results.

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

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

assert_eq!(*descendents.get(0).unwrap(), 375032);
assert_eq!(descendents.len(), 35);