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
:
10/02/2022 Update:
Now you can use the program 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:
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 Distribution
graph2img-1.0.2.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for graph2img-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1336045ab5b09b813e8622ace28c048f3a88e97850ae99b33ee69aa2a5739ef |
|
MD5 | a09a71471665ed4b6e43c2f811df8b34 |
|
BLAKE2b-256 | 3a0cd25f7c6ad04eadc99b388270058a94ebb276006b645b7b8aba6f3dc2c5ec |