Skip to content

GeekHub-FrontEnd-CMS-Online-8/python_algorithms

 
 

Repository files navigation

Algorithms and data structures implemented in Python 3

  • graphs and graph search algorithms
  • sorts
  • search data structures
  • lists, stacks, queues
  • some other algorithms and types

I am working on tests and assets for these files. Unit tests are in the tests directory, and some modules have doc tests. Some data structures make assertions or have methods for making assertions that check invariants.

Unit tests

python -m unittest discover tests -v

Doc tests

python <module.py> -v

Python Path

To ensure that Python can import the modules in this package, the parent directory of the package has to be in the PYTHONPATH. Instead of doing this in .bash_profile or another startup script, you can do it in the activate script of a virtualenv: $HOME/.virtualenvs/{virtualenv}/bin/activate.

unset PYTHONPATH
PYTHONPATH="/Users/kylebebak/Dropbox/Code/Python/_modules"
export PYTHONPATH

About

A library of Python algorithms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%