Implementation of paper Stability of Influence Maximization
The main algorithms are implemented with c++ and built with Bazel. The experiments can be run with the following steps. The code is tested only on Ubuntu.
- Install bazel
- Build code by running
bazel build :all. The code uses openmp. Make sure it is enabled before building the code. - Create two folders
resultandlog. - Run ICDet experiment with
./bazel-bin/uncertainty_infmax_exp ICDet GraphName. Graph is one of the graphs in thegraph/foleder. - Run Reg experiment on regular graph with
./bazel-bin/uncertainty_infmax_exp ICDet Degree. The dergee d must correpond to a graph with namereg_d.graphin the graph folder.
The format of the input graph is as follows:
- The first line contains two integer n and m seperated by space as the number of nodes and number of edges. The graph is treated as a directed graph.
- Each of the following m lines contains three integers seperated by space as the start node id of the edge, end node if of the id and the multiplicity of the edge.
- Runnign the experiment generates a
GraphName.resultfile in the result folder. - Process the result file to csv:
python result_process/result_parser.py EXP_NAME - Use matlab with the script
visulization.mto generate the 3D bar plots.