Giter VIP home page Giter VIP logo

project-snets's Introduction

project-snets

Assignments for the course Complex networks: theory and applications

📅 Date: Jul 2019

🏫 Master in Communications and Computer Networks Engineering at Politecnico di Torino

📄 Report: latex/complex_net_report_senacheribbe.pdf

Description

The project consists of 4 assignments covering the topic of Complex Networks.

Assignment 1: Centrality indices

Using a real graph as input, different centralities measures are computed and compared: degree, Katz and betweenness centrality.

Assignment 2: Epidemic processes over the graph

Different epidemic processes are simulated on a real graph using a Monte Carlo approach: SI model, bootstrap percolation, bootstrap percolation (stocastic).

Assignment 3: Erdős–Rényi model

The Erdős–Rényi model (G(n,p) model) is simulated and its properties are tested for different values of n and p (up to n=100000).

Assignment 4: Barabási–Albert model

The Barabási–Albert model is simulated and its properties are tested for n=100000.

More information are available in the final report latex/complex_net_report_senacheribbe.pdf.
The code is written in Python 3 using numpy, scipy (sparse matrix operations) and numba (JIT compilation).

Run the code

To run the code, you need Python 3, Jupyter Notebook and the Python packages listed in requirements.txt.

Using virtual environment

Create a virtual environment, install the package dependencies and add a custom kernel to Jupyter:

$ python -m venv venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.txt ipykernel
(venv) $ ipython kernel install --user --name=project-snets
(venv) $ deactivate

Now you can simply run:

$ jupyter-notebook

and browse the code in the assignment*/ folders.

License

The source code is licensed under the GNU GPLv3. The content of the report is licensed under the CC BY-NC-SA 4.0

project-snets's People

Contributors

asena avatar

Watchers

 avatar  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.