| Crates.io | icentral-visit-markers |
| lib.rs | icentral-visit-markers |
| version | 0.1.0 |
| created_at | 2025-04-04 20:56:48.42026+00 |
| updated_at | 2025-04-04 20:56:48.42026+00 |
| description | A Rust crate for managing and tracking node visitations in graph traversal algorithms, supporting both indexed and mapped storage structures. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1620741 |
| size | 53,433 |
icentral-visit-markers is a Rust crate designed for efficient manipulation and tracking of graph traversal states, especially useful in algorithms involving graph exploration, such as depth-first or breadth-first search. The crate provides a robust mechanism to maintain node visitation states, encapsulating them in a structured and flexible manner.
To start using icentral-visit-markers in your project, add it to your Cargo.toml:
[dependencies]
icentral-visit-markers = "0.1.0"
use icentral_visit_markers::VisitMarkers;
let nodes = vec![NodeId(1), NodeId(2), NodeId(3)];
let mut markers = VisitMarkers::new_from_nodes(nodes, "example_markers");
markers.visit(NodeId(1));
assert!(markers.visited(NodeId(1)));
assert!(!markers.visited(NodeId(2)));
let unvisited_nodes = markers.iter_unvisited();
This project is licensed under the MIT License.
This README.md file was generated by an AI model and may not be 100% accurate, however, it should be pretty good.
This crate is in the process of being translated from c++ to rust. Currently, it still needs exhaustive testing. It is likely there currently exist many glitches which need to be fixed before proper usage. This crate is based on the original icentral program developed by Fuad Jamor. Please see the following repository for details: https://github.com/fjamour/icentral.
For progress updates, see the workspacer rust project.