pub fn run_algo(
db_dir: &Path,
subcmd: &AlgoSubcmd,
top: usize,
dir: AlgoDir,
edge_types: Vec<String>,
weight_prop: Option<String>,
min_weight: Option<f64>,
) -> Result<String, CliError>Expand description
Run a graph algorithm and return a formatted string.
dir selects the edge direction for degree and pagerank; wcc and
communities are always undirected and ignore it. edge_types /
weight_prop / min_weight are used by communities only.