pygraph-cli 0.1.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

pygraphcli 0.1.0

# pygraphpygraph is an extremely simple CLI tool for using graphviz. It takes a file to write to andadjacency list to construct the graph from. The intended use case is for generatingsmall graphs to embed in things like homework problems. The API is documented via the `--help`option## Examples```bashpygraph -d tree ab ac bd bepygraph -u -e neato circle ab bc cd de eapygraph -d -n "Sample Tree" labeled-tree root-left:1 root-right:1 left-child:4 right-child:3 root-root:0```![tree](examples/tree.png)![circle](examples/circle.png)![labeled-tree](examples/labeled-tree.png)## Usage```bash$ pygraph --helpUsage: pygraph [OPTIONS] FILE EDGES...Options: -e, --engine [dot|neato|twopi|circo|fdp|sfdp|patchword|osage] Choose layout engine to use -u, --undirected / -d, --directed Specify undirected or directed edges --format TEXT Image format -n, --name TEXT Name of graph in image --dot Preserve the source dot file --no-vertex-labels Don't label vertex labels --help Show this message and exit.```### Installation```bashpip install pygraph-cli```### Syntax* First argument is file to save to without extension* Pairs of single characters after are interpreted as creating an edge between the them (eg: `ab ac cd`)* Nodes can have any name when separated by `-` (eg: `root-child`)* To label the edge, append `:` and any text (eg: `root-child:label`)* Name the image by passing `-n` option* To keep the original dot source, pass `--dot`

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.