1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#[derive(Debug, Clone)] pub struct GraphEdge { pub from: usize, pub to: usize, pub kind: EdgeKind, pub weight: f32, } #[derive(Debug, Clone)] pub enum EdgeKind { Produces, Consumes, References, Supersedes, }