pub async fn build_graph(
    client: &Client,
    root: Url,
    get_children: impl Fn(&Url, &str, usize) -> Option<HashSet<Url>> + 'static + Clone
) -> (DiGraph<Url, ()>, HashMap<Url, Result<String, String>>)