pub fn transform<F, G, Iter>(
input_batch_size: usize,
sort_batch_size: usize,
partitions_per_thread: usize,
graph: G,
transformation: F,
target_path: PathBuf,
) -> Result<()>where
F: Fn(usize, usize) -> Iter + Send + Sync,
Iter: IntoIterator<Item = (usize, usize)>,
G: RandomAccessGraph + Sync,
Expand description
Writes a new graph on disk, obtained by applying the function to all arcs on the source graph.