DSViz is a simple and intuitive Python interface to multiple packages in order to help visualise different data structres while coding them. This package is developed mainly for students or developers who are in the process of learning data structures.
Project description
Data Structure Visualiser
DSViz is a simple and intuitive Python interface to multiple packages in order to help visualise different data structres while coding them. This package is developed mainly for students or developers who are in the process of learning data structures.
This packages acts as an interface to Tkinter a Python UI library and GraphViz which facillitates rendering of graphs described in the DOT language.
This package can be used to visualise any implementations of the following:
- Array Lists
- Linked Lists
- Singly Linked Lists
- Doubly Linked Lists
- Circular Linked Lists
- Trees
- Binary Trees
- AVL
- 2-4 Trees
- Graphs
- Directed Graphs
- Undirected Graphs These are just a few examples data structures that can be visualised using DSViz.
Links
- GitHub: https://github.com/IshMehta/DSViz
- PyPI: https://pypi.org/project/DataStructureVisualiser/
- Documentation: https://ishmehta.github.io/DSViz/
Install
This library requires the GraphViz to be installed.
Mac
We recommend using Homebrew to install GraphViz.
Open terminal and run the following command (assuming you have Homebrew installed)
brew install graphviz
Windows
Historically, installing Graphviz and PyGraphviz on Windows has been challenging. Fortunately, the Graphviz developers are working to fix this and their recent releases have much improved the situation.
For this reason, PyGraphviz 1.7 only supports Graphviz 2.46.0 or higher on Windows. We recommend either manually installing the official binary release of Graphviz
You may also need to install Visual C/C++, e.g. from here: https://visualstudio.microsoft.com/visual-cpp-build-tools/
Assuming you have Python and Visual C/C++ installed, we believe the following should work on Windows 10 (64 bit) using PowerShell.
Manual download:
Download and install 2.46.0 for Windows 10 (64-bit): stable_windows_10_cmake_Release_x64_graphviz-install-2.46.0-win64.exe
Linux
We recommend installing Graphviz using your Linux system's package manager. Below are examples for some popular distributions.
Ubuntu and Debian
sudo apt-get install graphviz graphviz-dev
Fedora and Red Hat
You may need to replace dnf
with yum
in the example below.
sudo dnf install graphviz graphviz-devel
Finally
After installing GraphViz according to your OS, you can install our > package and the other dependencies using pip
$ pip install DataStructureVisualiser
Credits to pygraphviz for specific instructions on downloading GraphViz.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for DataStructureVisualiser-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d55ea9d0db1ca97b10fa15f4a53792aebe908fc76679a24af74c1dbb738c80 |
|
MD5 | 6b989215d769299310a559ec2dbb5f1c |
|
BLAKE2b-256 | 9e6dbbae368e628de9d40c158d5a7bd91a5f341cfbf8de1ad7182eedb8e1e0ec |
Hashes for DataStructureVisualiser-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2efa040dbe6855e8343f97334d880fb373b920d994d991028785004d1ce66378 |
|
MD5 | bb41c793440c7b71e29cd77ea0f2b609 |
|
BLAKE2b-256 | 2dbb23dc95412ff84a4a008c2f9502071a869a6e722c8521cfb528ccb7a2dcde |