Lifecycle: maturing CRAN/METACRAN GitHub release (latest by date) GitHub Release Date Codecov test coverage CodeFactor CII Best Practices

About the package

This package extends existing network analysis packages for analysing multimodal and multilevel networks. The package is intended as a software companion to the forthcoming book:

David Knoke, Mario Diani, James Hollway, and Dimitris Christopoulos (2021) Multimodal Political Networks. Cambridge University Press: Cambridge.

How does migraph help?

Works with your current network analysis workflow

The package is offered as a complement to existing R packages for network analysis and thus tries to work well with your existing analytic workflows and the classes invoked. All {migraph} measures and models work with data in base formats:

as well as with objects from the following packages:

Since v0.6.3, {migraph} can also import and export to UCINET files.

Extends your current network analysis workflow

{migraph} offers a range of measures and models with sensible defaults. Most wrap existing functions in common packages for use with one-mode networks, but extend these to treat and/or normalise for two-mode (and sometime three-mode) networks correctly. Functions are given intuitive and succinct names that avoid conflicts with existing function names wherever possible.




Please explore the list of functions to find out more.



The easiest way to install the latest stable version of {migraph} is via CRAN. Simply open the R console and enter:


You can then begin to use {migraph} by loading the package:


This will load all other required packages and also make the data contained within the package available.


For the latest development version, for slightly earlier access to new features or for testing, you may wish to download and install the binaries from Github or install from source locally.

Binaries for all major OSes – Windows, Mac, and Linux – can be found by clicking on the latest release here. Download the appropriate binary for your operating system, and install using an adapted version of the following commands:

To install from source the latest main version of {migraph} from Github, please install the {remotes} package from CRAN and then enter into the console:

Relationship to other packages

It draws together, updates, and builds upon many functions currently available in other excellent R packages such as {bipartite}, {multinet}, {netmem}, and {tnet}, and implements many additional features currently only available outside the R ecosystem in packages such as UCINET.