Uses old Rust 2015
0.1.2 |
|
---|---|
0.1.2-3 |
|
0.1.1 |
|
0.1.0 |
|
#108 in #simple
9KB
85 lines
BAG
Bag is a bi-direction append only graph for Rust. It is simple to understand and use. It is in part a learning project, and in part a useful component of a future project I am planning.
lib.rs
:
Bag
bag
is a simple, insert only graph. It is simple to understand conceptually, and modify if needed.
Data is represented as NodeID
s, which can be used to retrieve pointers to Node
s stored in the GraphStore
.
These Node
s point to their parents and children by holding their NodeID
s.
These Node
s also hold a datatype <T>
(the type of the node and graph), which you can use to store your program
specific data.