Installation¶
To add Graphina to your project, run:
Or manually add it to your Cargo.toml:
Replace 0.4.0-alpha.3 with the latest version or the version you want to use.
MSRV
Graphina requires Rust 1.85 or newer.
Feature Flags¶
Enable only what you need using the respective feature flags.
centrality: Centrality measures (PageRank, betweenness, etc.)community: Community detection (Louvain, label propagation, etc.)links: Link prediction algorithms (like Jaccard and Adamic-Adar indexes)approximation: Algorithms for comutationally hard graph problemsmetrics: Graph metrics (like graph diameter and clustering coefficient)mst: Minimum Spanning Tree algorithmstraversal: Graph traversal algorithms (like BFS and DFS)subgraphs: Subgraph extraction and filteringparallel: Parallel implementations of a subset of algorithms
You can also add features via command line: