Install and start using the igraph R package
igraph is on CRAN and can be installed from within R:
## Download and install the package
install.packages("igraph")
## Load package
library(igraph)On Linux (and other Unix-like systems, but not on OSX),
a C and a C++ compiler is needed, and also the tool
make. On Debian and Ubuntu Linux the
build-essential package installs these.
libxml2 library, including header files,
is needed for the ability of reading GraphML files. On
Ubuntu and Debian Linux the lixml2 and
libxml2-dev packages are needed.tcltk
R package is needed for
tkplot
and
tkigraph
to work.rgl
R package is needed for
rglplot
to work.ape
package is needed to
plot nice dendrograms with
dendPlot
.
igraph and
graph.structure
are good places
to start.demo(package="igraph")
(or use igraphdemo
if you have
tcltk
) to get a list of
demos.
Note that this documentation is included in the R
package. You can use library(help="igraph")
or help("igraph") as a starting point.
Note: the simplest way to install the igraph R
package is typing install.packages("igraph")
in your R session.
Clone (or fork) the dev branch from the
rigraph git
reposity on github.
Post a question on the igraph-help mailing list. To avoid spam on the list, you need to sign up first. You can also search the mailing list.
Post specific igraph questions on
Stack Overflow. Make sure that you include the
igraph tag and that you include a reproducible
example, complete with code and data.
Your contribution is more than welcome!
Report bugs or suggest new features or algorithms in the github issue tracker.
Send a pull request on github. Please note that igraph can contain only code that is compatible with its GPL license. See our guide on contributions to the igraph R package at Github.