{"id":20977336,"url":"https://github.com/gontainer/graph","last_synced_at":"2026-04-24T17:32:06.013Z","repository":{"id":225025865,"uuid":"764881068","full_name":"gontainer/graph","owner":"gontainer","description":"Detect circular dependencies in graphs.","archived":false,"fork":false,"pushed_at":"2024-02-28T22:32:37.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-27T03:40:38.461Z","etag":null,"topics":["circular-dependencies","circular-dependency","directed-graph","directed-graphs","graph","graphs"],"latest_commit_sha":null,"homepage":"","language":"Go","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/gontainer.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}},"created_at":"2024-02-28T21:58:44.000Z","updated_at":"2024-02-29T20:12:24.000Z","dependencies_parsed_at":"2024-02-28T23:32:03.853Z","dependency_job_id":"8435ff5c-8fa9-4232-b179-e9b4a9142ddc","html_url":"https://github.com/gontainer/graph","commit_stats":null,"previous_names":["gontainer/graph"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gontainer/graph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gontainer%2Fgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gontainer%2Fgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gontainer%2Fgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gontainer%2Fgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gontainer","download_url":"https://codeload.github.com/gontainer/graph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gontainer%2Fgraph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32234565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["circular-dependencies","circular-dependency","directed-graph","directed-graphs","graph","graphs"],"created_at":"2024-11-19T04:58:24.598Z","updated_at":"2026-04-24T17:32:05.996Z","avatar_url":"https://github.com/gontainer.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Go Reference](https://pkg.go.dev/badge/github.com/gontainer/graph.svg)](https://pkg.go.dev/github.com/gontainer/graph)\n[![Tests](https://github.com/gontainer/graph/actions/workflows/tests.yml/badge.svg)](https://github.com/gontainer/graph/actions/workflows/tests.yml)\n[![Coverage Status](https://coveralls.io/repos/github/gontainer/graph/badge.svg?branch=main)](https://coveralls.io/github/gontainer/graph?branch=main)\n[![Go Report Card](https://goreportcard.com/badge/github.com/gontainer/graph)](https://goreportcard.com/report/github.com/gontainer/graph)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=gontainer_graph\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=gontainer_graph)\n\n# Graph\n\nThis package provides a tool to detect circular dependencies and find all dependant nodes in directed graphs.\n\n```go\ng := graph.New()\ng.AddDep(\"company\", \"tech-team\")\ng.AddDep(\"tech-team\", \"cto\")\ng.AddDep(\"cto\", \"company\")\ng.AddDep(\"cto\", \"ceo\")\ng.AddDep(\"ceo\", \"company\")\n\nfmt.Println(g.CircularDeps())\n\n// Output:\n// [[company tech-team cto company] [company tech-team cto ceo company]]\n```\n\nSee [examples](examples_test.go).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgontainer%2Fgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgontainer%2Fgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgontainer%2Fgraph/lists"}