Code Monkey home page Code Monkey logo

network-disintegration-attacks's Introduction

Final Project for BIF498HH - Network Science

The following directories are included in this repository:

  • benchmark/ : contains the benchmarking datasets of networks used in the project
  • code/ : contains the code used in the project
    • methods.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 the results/ 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 report
    • edges/ : contains the figures in the edge attack section of the results
    • nodes_community/ : contains the figures in the node community attack section of the results
    • nodes_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 attack
  • plci_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 files
  • results/ : 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

This repository is licensed under the MIT License. See the LICENSE file for more details.

network-disintegration-attacks's People

Contributors

raysas avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.