3 releases

0.1.3 Nov 11, 2020
0.1.2 Oct 27, 2020
0.1.1 Oct 26, 2020
0.1.0 Oct 26, 2020

#260 in Database implementations

Download history 13771/week @ 2024-05-27 15128/week @ 2024-06-03 15464/week @ 2024-06-10 15465/week @ 2024-06-17 14961/week @ 2024-06-24 14622/week @ 2024-07-01 14702/week @ 2024-07-08 15733/week @ 2024-07-15 15228/week @ 2024-07-22 15672/week @ 2024-07-29 15154/week @ 2024-08-05 15300/week @ 2024-08-12 14246/week @ 2024-08-19 14596/week @ 2024-08-26 15088/week @ 2024-09-02 12244/week @ 2024-09-09

58,351 downloads per month

MIT/Apache

28KB
691 lines

gsgdt

Generic Stringly typed Graph DataType

fn main() {
        let label1: String = "bb0__0_3".into();
        let label2: String = "bb0__1_3".into();
        let style: NodeStyle = Default::default();

        let nodes = vec![
            Node::new(
                vec!["_1 = const 1_i32".into(), "_2 = const 2_i32".into()],
                label1.clone(),
                "0".into(),
                style.clone(),
            ),
            Node::new(
                vec!["return".into()],
                label2.clone(),
                "1".into(),
                style.clone(),
            ),
        ];

        let g = Graph::new(
            "Mir_0_3".into(),
            GraphKind::Digraph,
            nodes,
            vec![Edge::new(label1, label2, "return".into())],
        );
}

Dependencies

~0.4–1MB
~22K SLoC