The following directories are included in this repository:
benchmark/
: contains the benchmarking datasets of networks used in the projectcode/
: contains the code used in the projectmethods.ipynb
: contains the functions and methods used for attack and saving resulting metrics, statistics, time taken and graph objects. To use results from this file all of the data was saved in theresults/
directory.analysis_and_plotting.ipynb
: contains the code used to analyse and plot the results (already saved)plci_benchmark.r
: contains the code taken from here to calculate the complex centrality (plci) of each node and edited to loop over all the graphs in the benchmarking datasets and save the results in a csv file
figures/
: contains the figures used in the reportedges/
: contains the figures in the edge attack section of the resultsnodes_community/
: contains the figures in the node community attack section of the resultsnodes_vanilla/
: contains the figures in the node attack section of the results
graphs/
: contains the graphs generated in this project at 10 instances of the attackplci_results/
: contains the results of the plci values for each node in each graph in the benchmarking datasets (each graph has a csv file)processed_results/
: contains the processing of results already saved into ranks in csv filesresults/
: contains the results of the attacks on the benchmarking datasets, mainly constituting of- 7 csv files for each type of attack (node, community, edge) that include:
- the time taken for each attack on each network
- the R metric value of each attack on each network
- the InterE value of each attack on each network
- the sequence of LCC sizes for each attack on each network per batchs of 1% (sequence of 100)
- the sequence of LCC sizes for each attack on each network per one node removed
- the sequence of Global Efficiency for each attack on each network per batchs of 1% (sequence of 100)
- the sequence of Global Efficiency for each attack on each network per one node removed
stats.csv
: that have initial statistics of each graph generated in the code containing number of nodes, edges, density, average degree, average clustering coefficient, average shortest path length and diameter
- 7 csv files for each type of attack (node, community, edge) that include:
This repository is licensed under the MIT License. See the LICENSE file for more details.