Code Monkey home page Code Monkey logo

find-graph-path's Introduction

Some algorithms for solving graph path finding problems

This project comes from the python course of my master in Mathematical Engineering. The objective is to find the shortest path between two points of a cartesian grid, which we will represent as a graph.

The code includes :

  • 3 folders (input, Tests, docs) which contain what their name says
  • 2 modules (main.py, cleaning.py)
  • our reports in english and french
  • 1 script for visualisation (fig.py)

main.py

This script allows the user to test our algorithm.

cleaning.py

The Cleaning class defines the main storage point for room to clean.

fig.py

fig.py allow us to have smooth visualisation of our graph.

Prerequisite

Matplotlib : python3 -m pip install -U matplotlib

NetworkX python3 -m pip install -U networkx

Get stared:

Uncomment the graph you want to draw and launch python3 fig.py

We want to create animation to visualise the cleaning steps of the room but have no enough time to develop that

python_aspir_en.pdf

Our report in English. The French version is python_aspir_fr.pdf

input

The eight cases tests use as input file.

docs

Here, we use Pycco to generate decent looking code documentation. It produce HTML pages that displays our comments alongside with code. Comments are passed through Markdown, while code is passed through Pygments for syntax highlighting.

To improve: comments presentation

Tests

Test_AspiR

python3 -m unittest Tests/Test_AspiR.py

Ran 8 tests in 164.246s OK

Test_Robot.py

python3 -m unittest Tests/Test_Robot.py

Ran 2 tests in 0.001s OK

Test_Room.py

python3 -m unittest Tests/Test_Room.py

Ran 1 test in 0.000s OK

Kenneth Assogba & Alexis Squarcioni.

March 2020

find-graph-path's People

Contributors

kennethassogba avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.