| Crates.io | icentral-conn-vertex-map |
| lib.rs | icentral-conn-vertex-map |
| version | 0.1.0 |
| created_at | 2025-04-04 20:58:55.044721+00 |
| updated_at | 2025-04-04 20:58:55.044721+00 |
| description | The icentral-conn-vertex-map crate provides a robust data structure for managing node-to-node connectivity in computational graphs, with both indexed and mapped modes. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1620743 |
| size | 52,057 |
The icentral-conn-vertex-map crate offers a sophisticated data structure designed for efficient representation and manipulation of connectivity mappings between nodes in a computational graph. Designed for high-performance applications, it allows developers to manage connectivity using a ConnVertexMap which stores and retrieves node-to-node connection information with optimal efficiency.
vertices_for_node, set_vertex_map_for_node, and clear.iter for traversing connectivity mappings, facilitating streamlined operations over node connections.empty_indexed or empty_mapped constructors to initialize the map in states optimized for specific connectivity scenarios.At the heart of the ConnVertexMap is a MaybeIndexedMap, which offers an advanced mapping solution capable of efficient storage and retrieval operations, catering to complex node connectivity patterns.
use icentral_conn_vertex_map::ConnVertexMap;
fn main() {
let mut conn_map = ConnVertexMap::empty_indexed("My Graph");
let node_id = 42;
let connected_nodes = vec![1, 2, 3];
conn_map.set_vertex_map_for_node(node_id, connected_nodes);
if conn_map.has_mapping_for_node(node_id) {
println!("Node {} is connected to: {:?}", node_id, conn_map.vertices_for_node(node_id));
}
conn_map.clear();
assert!(!conn_map.has_mapping_for_node(node_id));
}
The icentral-conn-vertex-map is an essential tool for developers working with graph data structures requiring mutable connectivity mappings. Its methods support robust, efficient, and flexible data operations that are crucial for addressing real-world computational problems in networked environments.
This README was generated by an AI model and may not be 100% accurate. However, it should provide a good initial understanding of the crate's functionality.
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.