{"id":20733690,"url":"https://github.com/znrm/disjoint-hash-set","last_synced_at":"2026-01-08T13:43:34.197Z","repository":{"id":62444807,"uuid":"369898709","full_name":"znrm/disjoint-hash-set","owner":"znrm","description":"Incremental tracking of connected components identified by hash.","archived":false,"fork":false,"pushed_at":"2024-06-14T10:31:01.000Z","size":1104,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T16:50:07.199Z","etag":null,"topics":["data-structures","disjoint-sets","rust","rust-data-stuctures","union-find"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/disjoint-hash-set","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/znrm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-22T20:19:50.000Z","updated_at":"2024-06-14T15:12:44.000Z","dependencies_parsed_at":"2024-11-17T05:26:42.346Z","dependency_job_id":"9f945382-b52a-4388-9f76-b6befbc66df3","html_url":"https://github.com/znrm/disjoint-hash-set","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znrm%2Fdisjoint-hash-set","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znrm%2Fdisjoint-hash-set/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znrm%2Fdisjoint-hash-set/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znrm%2Fdisjoint-hash-set/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znrm","download_url":"https://codeload.github.com/znrm/disjoint-hash-set/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246406126,"owners_count":20771887,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-structures","disjoint-sets","rust","rust-data-stuctures","union-find"],"created_at":"2024-11-17T05:26:35.470Z","updated_at":"2026-01-08T13:43:34.118Z","avatar_url":"https://github.com/znrm.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# disjoint-hash-set\n\nA Rust implementation of a disjoint set / union-find data structure for incremental tracking of connected components identified by their hash.\n\nIncorporates rank-based set joins and path compression to ensure the asymptotically optimal time complexity associated with union-find algorithms.\n\n**See the [reference docs](https://docs.rs/disjoint-hash-set) for examples, typical usage, and detailed documentation.**\n\n```rust\nuse disjoint_hash_set::DisjointHashSet;\n\nlet mut djhs = DisjointHashSet::new();\ndjhs.link(\"hello\", \"hi\");\ndjhs.link(\"hello\", \"👋\");\nassert!(djhs.is_linked(\"hi\", \"👋\"));\n\n// `DisjointHashSet` can be built from an iterator of edges\nlet djhs = vec![(\"a\", \"b\"), (\"a\", \"c\"), (\"d\", \"e\"), (\"f\", \"f\")]\n    .into_iter()\n    .collect::\u003cDisjointHashSet\u003c_\u003e\u003e();\n\n// Consume djhs to iterate over each disjoint set\nlet sets = djhs.sets(); // looks like [{\"a\", \"b\", \"c\"}, {\"d\", \"e\"}, {\"f\"}]\nassert_eq!(sets.count(), 3);\n```\n\nIssues, requests, contributions, and general feedback are welcome.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznrm%2Fdisjoint-hash-set","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznrm%2Fdisjoint-hash-set","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznrm%2Fdisjoint-hash-set/lists"}