{"id":16916583,"url":"https://github.com/ternaus/connected-components-js","last_synced_at":"2026-05-05T08:35:11.123Z","repository":{"id":57205813,"uuid":"421996453","full_name":"ternaus/connected-components-js","owner":"ternaus","description":"Operations with connected components in javascript","archived":false,"fork":false,"pushed_at":"2021-10-29T03:06:10.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-04T07:07:19.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/ternaus.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}},"created_at":"2021-10-27T22:54:15.000Z","updated_at":"2021-10-29T03:06:09.000Z","dependencies_parsed_at":"2022-09-12T22:50:53.854Z","dependency_job_id":null,"html_url":"https://github.com/ternaus/connected-components-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ternaus/connected-components-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternaus%2Fconnected-components-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternaus%2Fconnected-components-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternaus%2Fconnected-components-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternaus%2Fconnected-components-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ternaus","download_url":"https://codeload.github.com/ternaus/connected-components-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ternaus%2Fconnected-components-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270899579,"owners_count":24664720,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"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":[],"created_at":"2024-10-13T19:28:38.513Z","updated_at":"2026-05-05T08:35:06.096Z","avatar_url":"https://github.com/ternaus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library to work with connected components of the undirected graph\n\n## Installation\n\n```bash\nnpm install connected-components-js\n```\n\n```javascript\nconst g = new Graph();\ng.addEdge(\"a\", \"b\")\ng.addEdges([[\"a\", \"d\"], [\"e\", \"f\"], [\"k\", \"l\"]])\n\ng.addNode(\"c\")\ng.addNodes([\"t\", \"f\", \"m\"])\n\nconst components = g.computeComponents()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fternaus%2Fconnected-components-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fternaus%2Fconnected-components-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fternaus%2Fconnected-components-js/lists"}