| Crates.io | graphex |
| lib.rs | graphex |
| version | 0.2.0 |
| created_at | 2024-10-04 19:45:49.048105+00 |
| updated_at | 2024-11-08 18:42:39.263493+00 |
| description | A small library to help creating command line tools exploring pseudo graph |
| homepage | |
| repository | https://github.com/kymeria/graphex |
| max_upload_size | |
| id | 1397014 |
| size | 41,626 |
This library provide few traits to create a tool to explore a pseudo graph.
Node to allow the node of your graph to be explored.Display to display the result of the exploration.No, and this is why it is a pseudo graph.
Node::next can create node at runtime and return it.
std::fmt::Display ?std::fmt::Display is probably better implemented than graphex::Display.
However, there is only one impl possible for std::fmt::Display.
One may want to display different information (as potential key to explore next node) than std::fmt::Display.
Using two different traits make this possible.
Pull requests are welcome !!!