graph/
graph.rs

1use graplot::{Graph, RED, graph::GraphDesc, Color};
2
3fn main() {
4    let mut graph = Graph::new();
5    graph.graph_desc = GraphDesc {
6        node_color: RED,
7        outer_ring: (Color::new(1., 0.5, 0.8, 1.), 3.5),
8        ..Default::default()
9    };
10    let a = graph.add_node(vec![]);
11    let b = graph.add_node(vec![]);
12    let c = graph.add_node(vec![]);
13    
14    let d = graph.add_node(vec![a.idx, b.idx]);
15    let e = graph.add_node(vec![a.idx, c.idx]);
16
17    let _f = graph.add_node(vec![d.idx, e.idx, b.idx]);
18
19    graph.show();
20}