Skip to main content

graph2img: convert a graph to a png file.

Project description

Installation by pip

Install with pip:

pip install graph2img

Then write your edge information into graph.txt. For example:

1 2 1
2 3 2
1 3 3

This will return a triangular graph.

Then run the program:

graph2img graph.txt

This will return a file graph.png:

Or to draw a tree:

1 2 1
1 3 2
2 4 2
2 5 3
3 6 3
3 7 2
1 9 1
2 8 2

This will return a tree:

Installation from source

git clone https://github.com/ForwardStar/graph_drawer.git
cd graph_drawer
python setup.py install

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

graph2img-1.1.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

graph2img-1.1.2-py3-none-any.whl (5.2 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