Install and start using the igraph library
Make sure you have the following before installing igraph:
gcc
,
clang
or others.make
tool.libxml2
library for reading GraphML
files.build-essential
and the
libxml2-dev
packages is sufficient.
The standard installation method uses the
autoconf
/automake
toolset. After
downloading and uncompression the source code run the
following commands from the top-level directory of the code.
./configure
make
make check
make install
The make check
step is optional, but it is
useful to spot problems early on.
You can use the regular Unix way (as above), or
Homebrew, the
homebrew/science/igraph
formula.
One way to install igraph on Windows is to use Cygwin. From a Cygwin shell, use the standard installation method, as above.
It is also possible to use Microsoft Visual C++
(MSVC). Download the ZIP file made for MSVC, uncompress it,
and open the solution file igraph.sln
from
MSVC. You can build the library the usual way then. For
GraphML support you'll need to install the
libxml2
library by hand, see the
Windows port of libxml2
.
examples/simple
directory.
The original XML DocBook format of the C Reference Manual can be obtained by downloading the latest igraph development version from github.
Clone (or fork) the develop
branch from the
igraph 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 C library at Gtihub.