chizge
Version, currently master branch1 version
- master branchlatestJun 26, 2016
github.com/aladagemre/chizge
A Network (Graph) Analysis library for Crystal Language, inspired by NetworkX.
11 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
chizge:
github: aladagemre/chizge
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
- no constraint declared
- License
- MIT
- Author
- Ahmet Emre Aladağ <aladagemre@gmail.com>
Dependencies
This version declares no dependencies.
README
# Chizge (Çizge) [](https://travis-ci.org/aladagemre/chizge)
[](https://gitter.im/aladagemre/chizge?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
A Network (Graph) Analysis library for Crystal Language, inspired by NetworkX.
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
chizge:
github: aladagemre/chizge
```
## Usage
```crystal
require "chizge"
g = Chizge::Graph.new
g.add_path([1,2,3,4,5])
g.add_node(6)
g.add_edge(4, 6)
g.add_edge(4, 5, {"weight" => 10.0 as Chizge::Attr})
puts g.number_of_nodes
puts g.size
puts g.size(weight="weight")
g.degree([] of Chizge::Node, "weight") do |x|
puts x
end
i = g.each
puts i.next
puts g.to_s
puts g.contains(1)
puts g.contains(1, 2)
puts g[1]
```
## Status
This project is on pre-alpha stage and there may be lots of pieces missing yet.
## Development
TODO: Write development instructions here
## Contributing
1. Fork it ( https://github.com/aladagemre/chizge/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [aladagemre](https://github.com/aladagemre) Ahmet Emre Aladağ - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jun 26, 2016
- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/aladagemre/chizge
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 1