Crates.io | grapes |
lib.rs | grapes |
version | 0.3.0 |
source | src |
created_at | 2022-04-23 12:33:26.430957 |
updated_at | 2022-05-19 12:40:57.33644 |
description | Persistent graph data structures: Tree, Graph, Arena & more |
homepage | |
repository | https://gitlab.com/dawn_best/grapes |
max_upload_size | |
id | 572632 |
size | 121,177 |
Persistent: Cheap to clone, so you can keep (and modify) older versions of the data structure easily.
Data Structures:
Unless you specifically need a persistent tree or a persistent graph, I recommend using these crates instead (these are more mature, and probably faster):
If you need simple persistent data structures (lists, maps), check out:
This library only supports what I need it to support for my very specific use case.
There are no benchmarks; performance is probably nowhere near other libraries, and this is fine for me.
This library is only useful if you need graph structures that can be somewhat cheaply cloned and manipulated.
For example, if you're building an application that stores state in a graph structure, and needs efficient undo-redo functionality, you might want to store past copies of the graph in memory. To do this efficiently, those copies should share parts of the graph that didn't change.