Giter VIP home page Giter VIP logo

easy-digraph-draw's Introduction

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

easy-digraph-draw's People

Contributors

darkhipo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

shlpu swipswaps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.