init
This commit is contained in:
commit
5aa6d2be89
14 changed files with 5093 additions and 0 deletions
16
examples/simple.rs
Normal file
16
examples/simple.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
use noders::{display::display, graph::Graph};
|
||||
|
||||
fn main() {
|
||||
let mut graph = Graph::empty();
|
||||
|
||||
let a = graph.node("A");
|
||||
let b = graph.node("B");
|
||||
let c = graph.node("C");
|
||||
let d = graph.node("D");
|
||||
|
||||
graph.link(a, b);
|
||||
graph.link(a, c);
|
||||
graph.link(a, d);
|
||||
|
||||
display(graph);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue