parallel_random_walks

Function parallel_random_walks 

Source
pub fn parallel_random_walks<N, E, Ix>(
    graph: &Graph<N, E, Ix>,
    starts: &[N],
    walk_length: usize,
    restart_probability: f64,
) -> Result<Vec<Vec<N>>>
where N: Node + Clone + Hash + Eq + Send + Sync + Debug, E: EdgeWeight + Send + Sync, Ix: IndexType + Send + Sync,
Expand description

Parallel random walk generator for multiple walks simultaneously Optimized for embedding algorithms like Node2Vec and DeepWalk