├── .gitignore ├── .gitmodules ├── LICENSE ├── README.md └── code ├── common ├── Makefile ├── build.py ├── cmd_args.py ├── dnn.py ├── functions │ ├── __init__.py │ └── custom_func.py ├── graph_embedding.py ├── modules │ ├── __init__.py │ └── custom_mod.py ├── src │ ├── custom_kernel.cu │ ├── custom_kernel.h │ ├── my_lib.c │ ├── my_lib.h │ ├── my_lib_cuda.c │ └── my_lib_cuda.h └── test.py ├── data_generator ├── data_util.py ├── gen_er_components.py └── pkl_dump.sh ├── graph_attack ├── collect_rl_results.py ├── dqn.py ├── er_trivial_attack.py ├── genetic_algorithm.py ├── grad_attack.py ├── nstep_replay_mem.py ├── plot_dqn.py ├── plot_dqn.sh ├── q_net.py ├── rl_common.py ├── run_dqn.sh ├── run_ga.sh ├── run_grad.sh └── run_trivial.sh ├── graph_classification ├── er_components.py ├── graph_common.py ├── run_er_components.sh └── test_er_comp.sh ├── node_attack ├── exhaust_attack.py ├── node_attack_common.py ├── node_dqn.py ├── node_genetic.py ├── node_grad_attack.py ├── node_rand_attack.py ├── plot_grad.sh ├── plot_node_grad_attack.py ├── q_net_node.py ├── run_attack.sh ├── run_exhaust.sh ├── run_genetic.sh ├── run_grad.sh └── run_rand.sh └── node_classification ├── gcn.py ├── gcn_modules.py ├── node_utils.py └── run_gcn.sh /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/.gitignore -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/.gitmodules -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/README.md -------------------------------------------------------------------------------- /code/common/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/Makefile -------------------------------------------------------------------------------- /code/common/build.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/build.py -------------------------------------------------------------------------------- /code/common/cmd_args.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/cmd_args.py -------------------------------------------------------------------------------- /code/common/dnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/dnn.py -------------------------------------------------------------------------------- /code/common/functions/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/common/functions/custom_func.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/functions/custom_func.py -------------------------------------------------------------------------------- /code/common/graph_embedding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/graph_embedding.py -------------------------------------------------------------------------------- /code/common/modules/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /code/common/modules/custom_mod.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/modules/custom_mod.py -------------------------------------------------------------------------------- /code/common/src/custom_kernel.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/src/custom_kernel.cu -------------------------------------------------------------------------------- /code/common/src/custom_kernel.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/src/custom_kernel.h -------------------------------------------------------------------------------- /code/common/src/my_lib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/src/my_lib.c -------------------------------------------------------------------------------- /code/common/src/my_lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/src/my_lib.h -------------------------------------------------------------------------------- /code/common/src/my_lib_cuda.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/src/my_lib_cuda.c -------------------------------------------------------------------------------- /code/common/src/my_lib_cuda.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/src/my_lib_cuda.h -------------------------------------------------------------------------------- /code/common/test.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/common/test.py -------------------------------------------------------------------------------- /code/data_generator/data_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/data_generator/data_util.py -------------------------------------------------------------------------------- /code/data_generator/gen_er_components.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/data_generator/gen_er_components.py -------------------------------------------------------------------------------- /code/data_generator/pkl_dump.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/data_generator/pkl_dump.sh -------------------------------------------------------------------------------- /code/graph_attack/collect_rl_results.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/collect_rl_results.py -------------------------------------------------------------------------------- /code/graph_attack/dqn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/dqn.py -------------------------------------------------------------------------------- /code/graph_attack/er_trivial_attack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/er_trivial_attack.py -------------------------------------------------------------------------------- /code/graph_attack/genetic_algorithm.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/genetic_algorithm.py -------------------------------------------------------------------------------- /code/graph_attack/grad_attack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/grad_attack.py -------------------------------------------------------------------------------- /code/graph_attack/nstep_replay_mem.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/nstep_replay_mem.py -------------------------------------------------------------------------------- /code/graph_attack/plot_dqn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/plot_dqn.py -------------------------------------------------------------------------------- /code/graph_attack/plot_dqn.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/plot_dqn.sh -------------------------------------------------------------------------------- /code/graph_attack/q_net.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/q_net.py -------------------------------------------------------------------------------- /code/graph_attack/rl_common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/rl_common.py -------------------------------------------------------------------------------- /code/graph_attack/run_dqn.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/run_dqn.sh -------------------------------------------------------------------------------- /code/graph_attack/run_ga.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/run_ga.sh -------------------------------------------------------------------------------- /code/graph_attack/run_grad.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/run_grad.sh -------------------------------------------------------------------------------- /code/graph_attack/run_trivial.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_attack/run_trivial.sh -------------------------------------------------------------------------------- /code/graph_classification/er_components.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_classification/er_components.py -------------------------------------------------------------------------------- /code/graph_classification/graph_common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_classification/graph_common.py -------------------------------------------------------------------------------- /code/graph_classification/run_er_components.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_classification/run_er_components.sh -------------------------------------------------------------------------------- /code/graph_classification/test_er_comp.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/graph_classification/test_er_comp.sh -------------------------------------------------------------------------------- /code/node_attack/exhaust_attack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/exhaust_attack.py -------------------------------------------------------------------------------- /code/node_attack/node_attack_common.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/node_attack_common.py -------------------------------------------------------------------------------- /code/node_attack/node_dqn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/node_dqn.py -------------------------------------------------------------------------------- /code/node_attack/node_genetic.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/node_genetic.py -------------------------------------------------------------------------------- /code/node_attack/node_grad_attack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/node_grad_attack.py -------------------------------------------------------------------------------- /code/node_attack/node_rand_attack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/node_rand_attack.py -------------------------------------------------------------------------------- /code/node_attack/plot_grad.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/plot_grad.sh -------------------------------------------------------------------------------- /code/node_attack/plot_node_grad_attack.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/plot_node_grad_attack.py -------------------------------------------------------------------------------- /code/node_attack/q_net_node.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/q_net_node.py -------------------------------------------------------------------------------- /code/node_attack/run_attack.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/run_attack.sh -------------------------------------------------------------------------------- /code/node_attack/run_exhaust.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/run_exhaust.sh -------------------------------------------------------------------------------- /code/node_attack/run_genetic.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/run_genetic.sh -------------------------------------------------------------------------------- /code/node_attack/run_grad.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/run_grad.sh -------------------------------------------------------------------------------- /code/node_attack/run_rand.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_attack/run_rand.sh -------------------------------------------------------------------------------- /code/node_classification/gcn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_classification/gcn.py -------------------------------------------------------------------------------- /code/node_classification/gcn_modules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_classification/gcn_modules.py -------------------------------------------------------------------------------- /code/node_classification/node_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_classification/node_utils.py -------------------------------------------------------------------------------- /code/node_classification/run_gcn.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Hanjun-Dai/graph_adversarial_attack/HEAD/code/node_classification/run_gcn.sh --------------------------------------------------------------------------------