Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

treevizer-0.0.5-py3-none-any.whl (10.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page