Skip to content

armandwayoff/Minimum-Spanning-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

made-with-p5js made-with-python MIT license

readme_title

This project was inspired by the video 9.9: Minimum Spanning Tree (Prim's Algorithm) - p5.js Tutorial made by Daniel Shiffman.

Table of Contents

Interactive Application

The interactive application is programmed with the p5.js library. This library is ideal because it has a full set of drawing functionality.

To use the library, simply add it to your HTML code:

<!DOCTYPE html>
<html>
  <head>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/p5.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.10.2/addons/p5.sound.min.js"></script>
  </head>
</html>

Visit the Application

Overview of the Application

overview-application

Python Version

How to Use This Code

To run this code, you will need the libraries NetworkX and Matplotlib. NetworkX is a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.

Installing NetworkX

You will find all the information necessary for its installation on the following page : https://networkx.github.io/documentation/networkx-1.9/install.html

Installing Matplotlib

You will find all the information necessary for its installation on the following page : https://matplotlib.org/users/installing.html

Output Example

Output example with 100 vertices :

output-example

License

Distributed under the MIT License. See LICENSE for more information.