meritrank 0.4.0

MeritRank is a Rust library for computing merit scores and rankings in a directed graph.
Documentation
use uuid::Uuid;

use rand::thread_rng;
use rand::Rng;

pub type WalkId = Uuid;

pub struct WalkIdGenerator {
    id: WalkId,
}

impl WalkIdGenerator {
    pub fn new() -> Self {
        WalkIdGenerator {
            id: Uuid::from_u128(thread_rng().gen()),
        }
    }

    pub fn get_id(&self) -> WalkId {
        self.id
    }
}