Skip to content

A small python curses tool to visualize some graph searching algorithms.

License

Notifications You must be signed in to change notification settings

RafaelKuebler/GraphAlgos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphAlgos

GraphAlgos is a small python application that provides a framework for visualizing graph search algorithms using curses (pygcurse library).

Recording of A*

Implemented algorithms

  • BFS
  • DFS
  • A*

(Recommended) Setup

The dependencies are only installed in the venv folder, so once you do not need them anymore it can safely be deleted.

  1. Set up a virtual environment:
python -m venv venv
  1. Activate the virtual environment:
source venv/Scripts/activate
  1. Install required packages:
pip install -r requirements.txt
  1. Start example:
python example.py
  1. The virtual environment can be deactivated with:
deactivate

Usage

  1. First left click will create a starting point.
  2. Second left click will create a target point.
  3. Afterwards, left clicking anywhere will create an obstacle (positions that cannot be traversed). Dragging while holding left click down will continuously create obstacles.
  4. Press Enter to start the graph search.

Packages

  • Pygcurse - Curses emulation library.
  • Pygcurse uses Pygame - Game engine written in Python.

License

This project is licensed under the MIT License - see the LICENSE.txt file for details.

About

A small python curses tool to visualize some graph searching algorithms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages