random#

Random infrastructure generator.

This module provides a generator for creating unstructured network topologies using the Erdos-Rényi random graph model. Each pair of nodes has a configurable probability p of being connected, allowing the simulation of a wide variety of sparse or dense graphs.

This is useful for stress-testing placement or routing algorithms, comparing performance against structured topologies, or modelling loosely connected networks such as P2P overlays or ad-hoc wireless systems.

Functions

get_random(n[, infrastructure_id, p, ...])

Create a random infrastructure with n nodes and a connection probability p.