pub fn local_scan_1_ecount_them(
us: &Graph,
them: &Graph,
weights_them: Option<&[f64]>,
mode: DegreeMode,
) -> IgraphResult<Vec<f64>>Expand description
Local scan-1 edge count on two graphs: count edges from them in
the 1-neighbourhood defined by us.
Both graphs must have the same vertex count and directedness.
ยงExamples
use rust_igraph::{Graph, local_scan_1_ecount_them, DegreeMode};
let mut us = Graph::with_vertices(3);
us.add_edge(0, 1).unwrap();
us.add_edge(1, 2).unwrap();
let mut them = Graph::with_vertices(3);
them.add_edge(0, 1).unwrap();
them.add_edge(0, 2).unwrap();
them.add_edge(1, 2).unwrap();
let res = local_scan_1_ecount_them(&us, &them, None, DegreeMode::All).unwrap();
assert!((res[1] - 3.0).abs() < 1e-12);