Welcome to the Data Structures Package — a clean, modular, and beginner-friendly Python library implementing essential data structures. This package is designed for learning, teaching, and experimenting with core data structure concepts in Python.
This package includes Python implementations of the following data structures:
- 🧱 Array
- 🔗 Singly Linked List
- 🔁 Circular Linked List
- 🔄 Doubly Linked List
- 🗃️ Stack (LIFO)
- 📬 Queue (FIFO)
- 🌳 Tree
- 🕸️ Graph
Each data structure is implemented from scratch with easy-to-read code and useful methods to manipulate and visualize data.
Clone this repository and use it locally:
git clone https://github.com/dany237/data_structures.git
cd data_structuresNo external dependencies required. Just use Python 3.7+.
Each data structure is placed in its own module inside the package. Example usage:
from danielle.stack import Stack
stack = Stack()
stack.push(10)
stack.push(20)
stack.pop()data_structures/
└── danielle/
├── __init__.py
├── array.py
├── linked_list.py
├── circular_linked_list.py
├── doubly_linked_list.py
├── stack.py
├── queue.py
├── tree.py
├── graph.py
- Each
.pyfile represents one data structure __main__.pycan be used to test the structures viapython -m danielle
Want to improve a data structure or add new features (like visualization or performance benchmarking)? Contributions are welcome! Feel free to open issues or pull requests.
Created with ❤️ by Kapsa Danielle
African Master’s in Machine Intelligence (AMMI) 2025
This project is open source and available under the MIT License.
If you found this helpful or inspiring, give the project a ⭐️ on GitHub!