https://github.com/yamafaktory/hypergraphz
HypergraphZ - A Hypergraph Implementation in Zig
https://github.com/yamafaktory/hypergraphz
graph graph-algorithms hypergraph zig zig-library zig-package ziglang
Last synced: 8 months 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-07T15:35:52.000Z (9 months ago)
- Last Synced: 2025-03-31T07:07:30.923Z (8 months ago)
- Topics: graph, graph-algorithms, hypergraph, zig, zig-library, zig-package, ziglang
- Language: Zig
- Homepage: https://yamafaktory.github.io/hypergraphz/
- Size: 103 KB
- Stars: 104
- 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 / Linker)
- awesome-zig - HypergraphZ🗒️Hypergraph Implementation in Zig
README
# HypergraphZ - A Hypergraph Implementation in Zig

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/).