Skip to main content

build

Function build 

Source
pub fn build<F, O: Clone, A: HasVar>(f: F) -> BuildResult<O, A>
where F: Fn(&Rc<RefCell<OpenHypergraph<O, A>>>) -> (Vec<Var<O, A>>, Vec<Var<O, A>>),
Expand description

Construct an OpenHypergraph from a function taking an empty OpenHypergraph, and returning two lists of Vars corresponding to sources and targets.