Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v0 source realm

Package disjointsetdemo is a small gnoweb demo of the union-find structure provided by the [p/moul/x/daily/disjointse...

Readme View source

Union-Find

⚠️ Experimental — generated with no human supervision by the daily MCP pipeline to exercise gno tooling. Not audited. See r/moul/x/daily.


Applies a fixed list of merges to [0, 10) and renders the resulting partition.

Demo of the p/moul/x/daily/disjointset library — every Union/Find comes from the package; this realm holds no union-find logic. Stateless, so Render is fully deterministic.

The library's Partition is order-independent (groups sorted, ordered by smallest member), which is exactly why the output can be pinned in an example test at all.

Built for gno 0.9.


Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

Dependency graph:

gno.land/r/moul/x/daily/disjointsetdemo/v0 dependency graph

🧪 Highly experimental — potentially vibe-coded. Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: DISCLAIMER.

Overview

Package disjointsetdemo is a small gnoweb demo of the union-find structure provided by the p/moul/x/daily/disjointset(/p/moul/x/daily/disjointset/v0) library: it merges a fixed list of pairs and shows the resulting partition.

It contains no union-find logic of its own. Stateless, so Render is deterministic — and the library's Partition is order-independent, which is what makes the output safe to pin.

Functions 1

func Render

1func Render(path string) string
source

Render renders the demo for gnoweb.

Imports 3

Source Files 3