Skip to main content

A Network Simulator that randomly generates and calculates minimum paths in a configurable random doubly-weighted graph

Project description

NetworkSim

NetworkSim is a project I wrote for CPE 400 (Computer Networking) and have implemented testing and CI/CD for as a part of CS 491 (DevOps and Testing).

NetworkSim generates random double-weighted graphs and finds the shortest distance between each node to every other node in the graph. The user can specify the number of simulations they want to run and the program will create a directory of directories representing each simulation. In each simulation directory exists a .png picture of the graph and a text file that has a list of the shortest path between every node to every other node, along with the weight of taking that path.

This program simply brute forces all of these calculations, so I would recommend playing with it a bit before going and running a million simulations on a Core 2 Duo. YMMV!


I would recommend using a virtual environment to run this package.

To initialize, simply run:

python3 -m venv env

source env/bin/activate

Then to install the required packages, simply run:

pip install -r requirements.txt

Once all required libraries are installed, simply run:

python src/networksim_package/NetworkSim.py

Or change directory into the packag directory by running:

cd src/networksim_package/
python NetworkSim.py

After reading all of the initial prompts, please input the parameters that one would like to use to run the simulations. Some lightweight parameters that one can use to test the functionality can be found below:

Number of simulations: __ (Up to the user)

Estimated number of nodes: 15 (Takes usually less than 3 seconds per sim on 2017 Macbook Pro i7)

Edge creation probability: 0.2 (0.3 can be fine too, but expect longer time per simulation iteration)

Min/max weights for nodes/edges: __ (Up to the user, just arithmetic, doesn't affect performance)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

NetworkSim-brysonreese-0.0.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

NetworkSim_brysonreese-0.0.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file NetworkSim-brysonreese-0.0.3.tar.gz.

File metadata

File hashes

Hashes for NetworkSim-brysonreese-0.0.3.tar.gz
Algorithm Hash digest
SHA256 2d4a226ed74236e35f1c97d62ce1e97a92a26cff1bbfafc26a05691d56dc9491
MD5 f664b7a85edd2a47cda752744b419f4c
BLAKE2b-256 770283dbf7e73826922ac9bfb19a40b51f4fded551fc5af36d6d75aa51965ccf

See more details on using hashes here.

File details

Details for the file NetworkSim_brysonreese-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for NetworkSim_brysonreese-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 26428ddab7d535852c9cdf7c5d62cef9f45073d7fbd098ae4feb222f7581521e
MD5 5fa91144f6f0865e80c510b8ec8af57a
BLAKE2b-256 821d5380a47427026a443a45c1ed6b0b891a1f25c75a31978ce0bce468689d98

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page