graphviz.cr
graphviz
Generate graphviz dot file with crystal
Installation
Add this to your application's shard.yml
:
dependencies:
graphviz:
github: chenkovsky/graphviz.cr
Usage
require "graphviz"
g = GraphViz.new(:G, type: :digraph)
# Create two nodes
hello = g.add_node "Hello", label: "你好"
world = g.add_node "World", label: "世界"
# Create an edge between the two nodes
edge = g.add_edge hello, world
edge[:label] = "边"
g[:label] = "example"
# Generate output image
STDERR.puts g.to_s
TODO: Write usage instructions here
Development
TODO: Write development instructions here
Contributing
- Fork it ( https://github.com/chenkovsky/graphviz.cr/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- chenkovsky chenkovsky - creator, maintainer
Repository
graphviz.cr
Owner
Statistic
- 1
- 1
- 0
- 0
- 0
- over 6 years ago
- November 30, 2016
License
MIT License
Links
Synced at
Thu, 07 Nov 2024 02:27:59 GMT
Languages