Skip to content

Latest commit

 

History

History
86 lines (48 loc) · 3.9 KB

README.md

File metadata and controls

86 lines (48 loc) · 3.9 KB

Third party libraries

libs

./netinf/: modified netinf.

  • To invoke the netinf from python, the modified netinf 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

notes

compile modified netinf

To start with, make sure you're under /app/libs/.

  1. compile snap

    # clone snap repository
    git clone https://github.com/snap-stanford/snap
    
    # make
    cd snap && make
  2. 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

refs

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

zss

Tree edit distance using the Zhang Shasha algorithm (an overview slide, another paper) on GitHub.

snap

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

NETINF infers a who-copies-from-whom or who-repeats-after-whom network of news media sites and blogs using the MemeTracker dataset.

refs

  • About Inferring Networks of Diffusion and Influence