A graph visualization tool
Project description
treevizer
Repo for visualizing tree datasctructures in Python. Depend on Graphviz.
It builds dot files based on linked node objects. It creates the dot files and then calls Grapviz to turn them into pictures.
Dependencies
This repo use Graphviz to create pictures from dot files. After installing Graphviz don't forget too add it to Path!
varning Warning: node '140702859636208', graph '%3' size too small for label ändra konfig
Config
It is possible to change the Dot configuration to alter the resulting graph. To se available options look at Graphviz's Dot documentaion. Put configuration in json format in .dot.json
in your project folder.
Available parts to configure are the entire graph, vertexes/nodes and edges/arrows.
Example for changing color on arrows and nodes for the BalancedBinaryTreeGraph.
{
"BalancedBinaryTreeGraph": {
"node": {
"fillcolor": "green",
},
"edge": {
"color": "blue"
}
}
}
Development
Run make help
to see available commands.
Cygwin
Integration tests don't work on cygwin. Images created on cygwin don't match with images created on Linux.
To-Do
- Test on MacOS.
- Test on Linux.
- Add package to pip site so can pip install.
- Fix a properly readme.
- Add support for linked lists.
- Tox.
- To not have .dot.json be mandatory.
- Turn it into pip project.
- Fix main.tree_to_dot(). It does not work.
- Support cygwin.
- Add red color to edges who couldn't be added and the Node it adds.
- Remove depency on igraph. https://eli.thegreenplace.net/2009/11/23/visualizing-binary-trees-with-graphviz
- Test on WSL.
- Test on Cygwin - Can't install igraph. Not supported.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file treevizer-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: treevizer-0.0.6-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f45d4adfffd4e09fd1ddefd6b801448e8aef49af3fa56993be44b0f9183a592 |
|
MD5 | f562a505fb2a86ac689f645afd373145 |
|
BLAKE2b-256 | 5eb747580cad89ff71d3c5833b70682ef24c46d975ecee54c8b5ffea6eb9a993 |