INNER CODE UNIT · Rust

graph

lurk-lab/lurk-beta · foil/src/lib.rs:256

    pub fn graph(&self) -> &G<M> {
        &self.graph
    }
    pub fn graph_mut(&mut self) -> &mut G<M> {
        &mut self.graph
    }
    pub fn alloc<L: Into<Label>>(&mut self, label: L) -> Vert {
        let l = label.into();
        let vert = self.graph.alloc(l.clone(), M::default());
        self.register(&l, &vert);
        vert
    }
    pub fn alloc_var(&mut self, name: &'static str) -> Vert {
        self.alloc(Var::new(name))
    }
    pub fn alloc_unique_var<S: Into<String>>(&mut self, name: S) -> Vert {
        let var = self.unique_var(name);
        self.alloc(var)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…