| Crates.io | icentral-path-counts |
| lib.rs | icentral-path-counts |
| version | 0.1.0 |
| created_at | 2025-04-04 21:03:55.640153+00 |
| updated_at | 2025-04-04 21:03:55.640153+00 |
| description | A crate for managing path counts of nodes in graph-like structures, designed for efficient performance in computational graph analysis. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1620752 |
| size | 56,674 |
The icentral-path-counts crate offers a dynamic and robust system for managing and computing path counts associated with nodes in a graph-like data structure. This crate is particularly useful for high-performance scenarios where efficient manipulation and retrieval of path count data is critical.
At its core, this crate provides the PathCountForNode trait and the PathCounts struct. These components encapsulate functionality to maintain path count information for nodes effectively, making it a strategic choice for path analysis tasks in graph algorithms or network flow computations.
PathCountForNode trait and offers additional methods to increment, set, and compute path counts. It supports initialization variants, such as empty_indexed, empty_mapped, and with custom lengths.To incorporate this crate in your project, add it to Cargo.toml:
[dependencies]
icentral-path-counts = "0.1.0"
For usage, import the crate and utilize the PathCounts struct to manage your node path counts:
use izopath_counts::{PathCounts, PathCountForNode};
let mut path_counts = PathCounts::new(5, "example_counts");
path_counts.increment_path_count_for_node(0, 1);
let count = path_counts.path_count_for_node(0);
Advanced users can leverage macros provided by the crate for more complex configurations.
This README.md file was generated by an AI model and may not be 100% accurate, but it should be pretty good.
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.