R/igraph is an R package of the igraph network analysis library.
Installation
You can install the stable version of R/igraph from CRAN:
install.packages("igraph")
For the development version, you can use R-universe
options(
repos = c(
igraph = 'https://igraph.r-universe.dev',
CRAN = 'https://cloud.r-project.org'
)
)
install.packages('igraph')
or Github, with the pak package:
pak::pak("igraph/rigraph")
When compiling from sources, make sure that you have C, C++ and Fortran compilers, as well as development packages for glpk
and libxml2
. On Debian/Ubuntu, use apt install libglpk-dev libxml2-dev
. On Fedora, use yum install glpk-devel libxml2-devel
.
For installation from source on Windows, you need to have RTools installed. For versions R >= 4.0 you can install the dependencies using:
pacman -Sy mingw-w64-{i686,x86_64}-glpk mingw-w64-{i686,x86_64}-libxml2
Installation troubleshooting
See the Installation FAQ.
Documentation
See the igraph package’s website for the complete manual.
Contributions
Please read our contribution guide.
Contributors
All contributions to this project are gratefully acknowledged using the allcontributors
package following the all-contributors specification. Contributions of any kind are welcome!