Orca is an efficient algorithm for counting graphlets in networks. It computes node- and edge-orbits (of 4- and 5-node graphlets) for each node in the network.
Orca is implemented as a simple command-line utility that consists of a single C++ source file. It has no external dependencies and requires only a relatively modern compiler that supports unordered_map from the C++11 standard, which most do.
Current GCC compiler requires a -std=c++11
flag. For example, you can compile the source using MinGW compiler on Windows with:
g++ -O2 -std=c++11 -o orca.exe orca.cpp
The utility takes four command-line arguments:
orca.exe node 5 graph.in orbit-counts.out
node
or edge
.4
or 5
.The random Erdos-Renyi graphs used in experiments are available in the random_graphs.zip
archive.