The code to MAPPR is in the latest version of of SNAP. See the examples/localmotifcluster directory for sample code. Here is an example of how to use the code:
# Download SNAP git clone https://github.com/snap-stanford/snap # Build the code cd snap/examples/localmotifcluster/ make # Run the MAPPR example ./localmotifclustermain -d:Y -i:C-elegans-frontal.txt -m:FFLoop -s:1
Our implementation works for both directed and undirected networks By default it regards the input graph as undirected. To analyze the graph as a directed graph, use parameter "-d:Y".
Regarding naming convention of motifs (the "-m" parameter), for undirected graphs, we use "UEdge" for undirected edge, and "clique3", ..., "clique9" for cliques for sizes 3 through 9. For directed graph motifs, the naming convention is seen in the following table.
The "-s:" parameter is to specify seed node in the MAPPR method.