| Crates.io | icentral-calculate-bc-mem |
| lib.rs | icentral-calculate-bc-mem |
| version | 0.1.0 |
| created_at | 2025-04-04 22:41:05.324533+00 |
| updated_at | 2025-04-04 22:41:05.324533+00 |
| description | An efficient Rust crate for incremental betweenness centrality calculations in dynamic graph structures. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1620901 |
| size | 80,512 |
icentral-calculate-bc-mem is an advanced Rust crate designed to perform efficient betweenness centrality computations in dynamic graph structures. Focused on memory optimization and incremental updates, this library facilitates the sophisticated manipulation of graph components to efficiently update the betweenness scores with minimal computational overhead.
BcMemWorkspace facilitating optimal resource usage.Arc and Mutex.use icentral_calculate_bc_mem::{update_bc_mem, construct_queue_for_bc_increment_computation};
use std::sync::{Arc, Mutex};
// Assuming `graph` is a pre-defined graph structure
// `bc_mem` and `scores` are betweenness centrality memory and score structures
// `edge` represents the edge being assessed
if let Err(e) = update_bc_mem(&mut bc_mem, &mut scores, &graph, edge, &mut workspaces) {
eprintln!("Error updating BC memory: {:?}", e);
}
Graph<GH> with generic constraints supporting mapped nodes and node ID range management.Add the following to your Cargo.toml:
[dependencies]
icentral-calculate-bc-mem = "0.1.0"
Contributions via pull requests are welcome. Please ensure your changes are well-documented and tested.
This project is licensed under the MIT License.
Note: This README.md file was generated by an AI model and may not be 100% accurate. However, it should be a good starting point.
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.