| Crates.io | icentral-scratch |
| lib.rs | icentral-scratch |
| version | 0.1.0 |
| created_at | 2025-04-04 22:31:02.441374+00 |
| updated_at | 2025-04-04 22:31:02.441374+00 |
| description | Graph-theoretic crate for finding biconnected components and calculating betweenness centrality optimized by identifying articulation points. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1620871 |
| size | 69,466 |
icentral-scratch is a Rust crate designed for developers working with graph-theoretic algorithms that focus on biconnected components and betweenness centrality within complex graph structures. It optimizes the computation of betweenness centrality for nodes by leveraging articulated structures within biconnected components to enhance performance.
Key Features:
BiconnectedComponentsScratch struct.find_edge_bcc_with_scratch and find_edge_bcc_with_scratch_step for efficient edge-based operations within graph networks.To utilize icentral-scratch in your project, include it in your Cargo.toml:
[dependencies]
icentral-scratch = "0.1.0"
Refer to the trait FindEdgeBccWithScratch and struct BiconnectedComponentsScratch for primary API functionalities.
Here is a basic example of how to employ the crate:
use icentral_scratch::{FindEdgeBccWithScratch, BiconnectedComponentsScratch, BetweennessCentralityError};
fn main() -> Result<(), BetweennessCentralityError> {
let mut bcc_scratch: BiconnectedComponentsScratch<YourGraphHandler> = BiconnectedComponentsScratch::empty("example_graph");
// Example node initiation and edges integration
// ...
bcc_scratch.compute_bc(&mut scores, Option::None)?;
Ok(())
}
We assume familiarity with Rust and graph theory to maximize the potential of icentral-scratch. The library operates seamlessly with any graph representation following the expected trait implementations.
This README.md file was generated by an AI model and may not be 100% accurate; however, it should convey the substantial details for effective crate usage.
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.