From the README:
HypergraphZ - A Hypergraph Implementation in Zig
![GitHub Actions Workflow Status](https://lemm.ee/api/v3/image_proxy?url=https%3A%2F%2Fimg.shields.io%2Fgithub%2Factions%2Fworkflow%2Fstatus%2Fyamafaktory%2Fhypergraphz%2Fci.yml%3Fbranch%3Dmain%26style%3Dflat-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
:
zig fetch --save https://github.com/yamafaktory/hypergraphz/archive/<commit-hash>.tar.gz
Add hypergraphz
as a dependency to your build.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.