RustHypergraph (RHG) is a Python library written in Rust that provides functionality for working with hypergraphs.
- TODO
Before you begin, make sure you have Git, Python, and Rust installed on your machine.
As the library is not yet available on PyPI, the steps to install and use it are as follows:
-
Clone the library:
git clone https://github.com/GiovanniForlenza/rusthypergraph.git -
Navigate to the
rusthypergraphdirectory:cd rusthypergraph -
Build the library:
cargo build --release -
Now you need to install Maturin:
- It's advisable to use a virtual environment:
python3 -m venv .env - Activate the virtual environment:
source .env/bin/activate
-
To install Maturin, execute:
pip install maturin -
To compile the Rust extension for the Python project:
maturin develop --release -
To install the library in the virtual environment, simply execute:
pip install . -
If you want to install the library on your machine and use it outside the virtual environment:
deactivepip install .
Perfect, now the library is installed and ready for use 🔥