As the datasets is too large to be uploaded to Github, we transfer them to Google Drive, data_url.
This compressed package contains two directories, cache and datasets.
cache saves the results of our experiments with .xslx format;
datasets saves the datasets used in the experiment;
The directory list should be formed as bellow:
COREATTACK
----cache
----datasets
----the other .py code files
BasicMethods.py: Some basic definitions and basic methods are defined here;
CoreAttack.py: Functions of COREATTACK, GreedyCOREATTACK, RED, and HDN methods;
NodeCollapse.py: Functions of CKC and HDE methods;
EfficiencyEvaluation.py: Visualization of time consumption.
Requirements:
numpy >= 1.20.3
networkx >= 2.6.3
pandas >= 1.3.4
matplotlib >= 3.5.0
openpyxl >= 3.0.9
Run interface of edge-based methods, including COREATTACK, GreedyCOREATTACK, RED, and HDN:
python CoreAttack.py
Run interface of node-based methods, including CKC and HDE:
python NodeCollapse.py
Visualization of time consumption:
python EfficiencyEvaluation.py
The results will be stored into cache directory.