Skip to content

I just wanted to draw a simply directed graph that didn't look like shit in ubuntu, python3. Everything was broken or complicated or both, so I did this.

License

Notifications You must be signed in to change notification settings

darkhipo/Easy-Digraph-Draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easy-Digraph-Draw

I just wanted to draw a simply directed graph that didn't look like shit in ubuntu, python3. Everything was broken or complicated or both, so I did this. Note: It works without the fucking gts triangulation library compile flag that people have been asking to get into the repository for ten years. Edit: Needed to get it to work for Windows too.

Install, Run Example

Ubuntu 16.04 AMD64

sudo apt-get install python3
sudo apt-get install python3-venv
cd ~/Easy-Digraph-Draw/
python3 -m venv ./my-venv
source ./my-venv/bin/activate
pip3 install graphviz
pip3 install pygraphviz
python3 ./gviz_simple.py
deactivate

Win 7 AMD64

  • Install MSFT C++ compiler.
  • Install Anaconda for Win AMD64, Python3.
  • Install graphviz for Win.
  • Add C:\Program Files (x86)\Graphviz2.38\bin to your PATH environment variable.
  • Download pygraphviz-1.3.1-cp34-none-win_amd64.whl.
  • Create a Conda environment with Python version 3.4: conda create --name digraphs python=3.4 anaconda.
  • Enter the environment: activate digraphs.
  • Install pygraphviz using pip3: pip install pygraphviz-1.3.1-cp34-none-win_amd64.whl.
  • Run example: python3 ./gviz_simple.py.
  • Exit the environment: deactivate

Examples

example 0 example 1 example 2 example 3 example 4

About

I just wanted to draw a simply directed graph that didn't look like shit in ubuntu, python3. Everything was broken or complicated or both, so I did this.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages