Tutorials

Tutorials assume that the PyDistSim and all required packages are installed. If not, please refer to the Installation section of this documentation.

Full explanation of topics

Demo notebooks

Hello distributed world

This tutorial demonstrates a distributed version of the classic Hello world example. Basic usage of the library is described in this demo, just follow the steps.

Automatic network generation

In this tutorial, we demonstrate how to generate a network automatically. Access the network generation notebook.

Creating an animation of a run

Here we demonstrate how to generate an animation of a simulated algorithm in any given network. Look at the animation notebook.

Visualize the construction of a tree

This tutorial demonstrates how to visualize the construction of a tree in a distributed algorithm. Check out the tree construction notebook.

Visualize the effect of network behavioral properties

This tutorial exemplifies how to visualize the effect of network behavioral properties on a distributed algorithm. Access the network properties notebook.

Algorithm benchmarking

This tutorial demonstrates how to benchmark a distributed algorithm. Access the benchmarking notebook.

Custom algorithm observers

This tutorial covers how to implement a observable algorithm and its corresponding observer. Access the notebook here.

Ultimate example: Mega-Merger implementation and analysis

Check out Mega-Merger implementation and the notebooks:

  1. Animation notebooks.

  2. Analysis notebook.

  3. Testing notebook.

Build date: Apr 10, 2026

Release version: 2.1.2