./netinf/
: modified netinf.
- To invoke the
netinf
from python, the modifiednetinf
executable takes cascade from stdin and pipe the network to stdout. Please refer./netinf/ReadMe.txt
or./netinf/netinf.cpp
for usage.
./snap/
: full snap package from GitHub, required to compile modified netinf.
./netinf/linux/
: download cpp implementation for Linux/Windows
./netinf_macos/
: download cpp implementation for macOS
./simrank
: cloned from littleq0903/simrank
To start with, make sure you're under /app/libs/
.
-
compile
snap
# clone snap repository git clone https://github.com/snap-stanford/snap # make cd snap && make
-
compile modified
netinf
# make sure you're now at /app/libs/netinf/ cd ../netinf # mac g++ -std=c++98 -Wall -Wno-unknown-pragmas -O3 -DNDEBUG -DNOMP -o netinf netinf.cpp cascnetinf.cpp ../snap/snap-core/Snap.o -I../snap/snap-core -I../snap/snap-adv -I../snap/glib-core -I../../snap-exp # ubuntu g++ -std=c++98 -Wall -Wno-unknown-pragmas -O3 -DNDEBUG -DNOMP -o netinf netinf.cpp cascnetinf.cpp ../snap/snap-core/Snap.o -I../snap/snap-core -I../snap/snap-adv -I../snap/glib-core -I../../snap-exp -lrt -lgomp # make sure the executable is provided with execute permission chmod +x netinf
Intermediate and Advanced Software Carpentry - Day3: Wrapping C/C++ for Python
AutoWIG: Automatic Wrapper and Interface Generator: examples
Boost.Python homepage ,documentation and tutorial
Extending Python with C or C++ official documentation
Wrapping C++ code with python (manually) from stackoverflow
how to make python load dylib on osx from stackoverflow
ctypes
official documentation
Tree edit distance using the Zhang Shasha algorithm (an overview slide, another paper) on GitHub.
Stanford Network Analysis Platform (SNAP) is a general purpose, high performance system for analysis and manipulation of large networks. SNAP is written in C++ and it scales to massive graphs with hundreds of millions of nodes and billions of edges.
Source code on GitHub. Full document can be found at here. Example applications for advanced SNAP functionality are available in the examples directory and described here.
Graphviz and GnuPlot are needed.
NETINF infers a who-copies-from-whom or who-repeats-after-whom network of news media sites and blogs using the MemeTracker dataset.
- About Inferring Networks of Diffusion and Influence