| Crates.io | icentral-label-map |
| lib.rs | icentral-label-map |
| version | 0.1.0 |
| created_at | 2025-04-04 20:52:02.177361+00 |
| updated_at | 2025-04-04 20:52:02.177361+00 |
| description | Efficiently manage label mappings within directed graphs, supporting complex node and edge transformations. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1620734 |
| size | 56,050 |
icentral-label-map is a versatile crate designed for handling label mappings within directed graphs. Employing advanced data structures, such as HashMap, this crate is optimized for efficiency when managing complex node relationships in graph theory applications. By leveraging the LabelMap structure, developers can create, modify, and query label maps dynamically, enabling seamless graph transformations and data manipulation.
The LabelMap structure is implemented with various methods allowing for the creation of named empty maps, insertion and retrieval of node mappings, and edge remapping. Detailed macro definitions ensure repetitive operations are minimized, promoting concise code within your applications.
insert_outin and resize_inout.mapped_edge and projected_edge.use icentral_label_map::LabelMap;
let mut map = LabelMap::empty("MyMap");
map.insert_outin(NodeId::new(1), NodeId::new(2));
let edge = map.mapped_edge(&Edge::new(NodeId::new(1), NodeId::new(2)));
Add the following dependency to your Cargo.toml:
[dependencies]
icentral-label-map = "0.1.0"
This README.md file was generated by an AI model and may not be 100% accurate; however, it should be pretty good. Please refer to the source code and documentation for a detailed understanding of functionalities.
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.