Skip to content

SimonPrato11/floyd-warshall

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Recursive Floyd Warshall Algorithm

This project presents a Python implementation of the Floyd-Warshall algorithm using recursion. The algorithm computes the shortest paths in a directed graph, handling both positive and negative edge weights effectively, as long as there are no negative cycles.

Installation

  1. Clone this repository
  2. Change to root directory
cd floyd-warshall
  1. Install necessary dependencies
pip install -r requirements.txt

Usage

Run unit tests:

  python -m _tests_.unit

Run performance tests:

  python -m _tests_.performance

Running recursive function

To run the recursive function module, use the following command:

  python -m functions.recursive

(Note: Running this command will not produce any output as the function does not inherently print anything, you need to modify the script as necessary.)

Contributing

Pull requests are welcome. Please make sure to update tests as appropriate.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages