igraphlite is a cpp11-powered R package interface to igraph network analysis library. It is not a fork of the existing R igraph package, but a reboot from scratch striving for good performance, simple codebase, and the consistency with the C implementation.
Requirements
- Unix-like environment (macOS, Linux, WSL, MinGW on MSYS2, etc.)
- C++17 compiler (clang++ >= Apple clang 11.0, g++ >= 9.1)
- CMake
- GLPK
- libxml2
- NOT required:
- R igraph package
- C igraph library: igraphlite can use an existing igraph library for faster installation if it is built with
IGRAPH_INTEGER_SIZE=32and found by CMakefind_package(). For example,brew install heavywatal/tap/igraph32provides such a library. Environment variables${igraph_ROOT}and${CMAKE_PREFIX_PATH}can be used to help CMake find it. if not found, an appropriate version is built and installed automatically.
macOS:
Ubuntu:
Installation
# install.packages("pak")
pak::pak("heavywatal/rigraphlite")