An R package for motif-based spectral clustering of weighted directed networks.

The **motifcluster** package provides
implementations of motif-based spectral clustering
of weighted directed networks in R.
These provide the capability for:

- Building motif adjacency matrices
- Sampling random weighted directed networks
- Spectral embedding with motif adjacency matrices
- Motif-based spectral clustering

The methods are all designed to run quickly on large sparse networks, and are easy to install and use. These methods are based on those described in [Underwood, Elliott and Cucuringu, 2020], which is available at arXiv:2004.01293.

```
install.packages("motifcluster")
```

- ClusterR
- igraph
- Matrix
- RSpectra

Documentation for the **motifcluster** package
is available in the
doc
directory.

An instructional vignette for the **motifcluster** package
is available in the
vignettes
directory.

- William George Underwood, Princeton University

**Any scripts or data that you put into this service are public.**

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.