| Crates.io | icentral-workspace-map |
| lib.rs | icentral-workspace-map |
| version | 0.1.0 |
| created_at | 2025-04-04 22:39:54.928301+00 |
| updated_at | 2025-04-04 22:39:54.928301+00 |
| description | A Rust crate for managing workspaces in a graph structure, utilizing a MaybeIndexedMap for efficient node-to-workspace mapping. Features search algorithms for graph traversal. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1620898 |
| size | 64,792 |
icentral-workspace-map is a Rust crate designed for efficient workspace management within graph systems. It utilizes a MaybeIndexedMap to map nodes in a graph to their corresponding workspaces, providing both indexed and non-indexed modes for flexible management.
To start using the WorkspaceMap, initialize it with a desired length and name:
use icentral_workspace_map::WorkspaceMap;
let workspace_map = WorkspaceMap::new(10, "example_map");
has_workspace.workspace_ref and workspace_mut to obtain immutable and mutable references, respectively.set_workspace_for_node.Perform BFS and RBFS graph traversal with methods that can be optimized for parallel execution:
workspace_map.bbfs(None, &component);
workspace_map.bbfs_rbfs(&mut scores, None, &mut component);
This README.md file was generated by an AI model. While it aims to be informative and accurate, there may be nuances not fully captured.
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.