use cpnets::prelude::*; fn main() { let mut net = Net::new("N"); let t1 = Transition::new("T1"); net.add_place("P1").unwrap(); net.add_place("P2").unwrap(); net.add_transition(t1).unwrap(); net.add_arcs(arcs! { "P1" => "T1"; "x", "T1" => "P2"; expression!("x", &["x"]), }) .unwrap(); net.dump_dot(); }