Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yamafaktory/hypergraphz
HypergraphZ - A Hypergraph Implementation in Zig
https://github.com/yamafaktory/hypergraphz
graph graph-algorithms hypergraph zig zig-library ziglang
Last synced: 9 days ago
JSON representation
HypergraphZ - A Hypergraph Implementation in Zig
- Host: GitHub
- URL: https://github.com/yamafaktory/hypergraphz
- Owner: yamafaktory
- License: mit
- Created: 2024-07-25T21:03:49.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-23T15:30:18.000Z (about 2 months ago)
- Last Synced: 2024-10-15T02:41:14.816Z (25 days ago)
- Topics: graph, graph-algorithms, hypergraph, zig, zig-library, ziglang
- Language: Zig
- Homepage: https://yamafaktory.github.io/hypergraphz/
- Size: 79.1 KB
- Stars: 100
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - yamafaktory/hypergraphz - A Hypergraph Implementation in Zig. (Data Structure and Algorithm / Utility)
- awesome-zig - HypergraphZ🗒️Hypergraph Implementation in Zig
README
# HypergraphZ - A Hypergraph Implementation in Zig
![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/yamafaktory/hypergraphz/ci.yml?branch=main&style=flat-square)
HypergraphZ is a directed hypergraph implementation in Zig (https://en.wikipedia.org/wiki/Hypergraph):
- Each hyperedge can contain zero, one (unary) or multiple vertices.
- Each hyperedge can contain vertices directed to themselves one or more times.## Usage
Add `hypergraphz` as a dependency to your `build.zig.zon`:
```sh
zig fetch --save https://github.com/yamafaktory/hypergraphz/archive/.tar.gz
```Add `hypergraphz` as a dependency to your `build.zig`:
```zig
const hypergraphz = b.dependency("hypergraphz", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("hypergraphz", hypergraphz.module("hypergraphz"));
```## Documentation
The latest online documentation can be found [here](https://yamafaktory.github.io/hypergraphz/).