{"id":24143841,"url":"https://github.com/dnbaker/gds","last_synced_at":"2026-06-15T09:31:31.912Z","repository":{"id":94818531,"uuid":"94707554","full_name":"dnbaker/gds","owner":"dnbaker","description":"Graph Data Structures: Generic, Space-efficient Graph Algorithms","archived":false,"fork":false,"pushed_at":"2018-09-23T13:15:22.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T14:33:06.152Z","etag":null,"topics":["union-find"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dnbaker.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":"2017-06-18T19:11:07.000Z","updated_at":"2021-09-01T09:49:38.000Z","dependencies_parsed_at":"2023-04-24T06:02:31.871Z","dependency_job_id":null,"html_url":"https://github.com/dnbaker/gds","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dnbaker/gds","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbaker%2Fgds","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbaker%2Fgds/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbaker%2Fgds/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbaker%2Fgds/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnbaker","download_url":"https://codeload.github.com/dnbaker/gds/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnbaker%2Fgds/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34357281,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["union-find"],"created_at":"2025-01-12T05:45:42.630Z","updated_at":"2026-06-15T09:31:31.895Z","avatar_url":"https://github.com/dnbaker.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## GDS: Graph Data Structures\n\n#### Union-Find\nImplementations:\n  1. dsv.h: Disjoint-Set Vector.\n    * Vector-based index implementation. This manages storage for objects and uses less memory but is less flexible.\n    * Overhead: 3 bits + `sizeof(size_type) * CHAR_BIT` per element, plus `sizeof(void *) * 2 + sizeof(std::vector::size_type)` for the vector.\n  2. ufa.h: Union-Find Adapter.\n     * Inheritance and free functions. This is more flexible, but requires manual resource management and requires more memory because it works with pointers (8-bytes) instead of integers of a user-specified size.\n     * Overhead: `alignof(T) % sizeof(T) + sizeof(void *)` per element.\n\n\n#### TODO:\n\n1. Topological Sort\n2. Kruskal's Algorithm: Topological Sort\n3. Additional Graph Algorithms...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnbaker%2Fgds","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnbaker%2Fgds","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnbaker%2Fgds/lists"}