{"id":36981914,"url":"https://github.com/hexlet-components/php-graphs","last_synced_at":"2026-01-13T22:51:47.999Z","repository":{"id":56984028,"uuid":"264847267","full_name":"hexlet-components/php-graphs","owner":"hexlet-components","description":null,"archived":false,"fork":false,"pushed_at":"2025-09-11T08:29:09.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-10-14T09:22:37.758Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hexlet-components.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-05-18T06:25:34.000Z","updated_at":"2025-09-11T08:29:12.000Z","dependencies_parsed_at":"2025-09-11T10:20:51.133Z","dependency_job_id":"6acb0f70-6ab2-49b5-9468-fd870999c86a","html_url":"https://github.com/hexlet-components/php-graphs","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/hexlet-components/php-graphs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexlet-components%2Fphp-graphs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexlet-components%2Fphp-graphs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexlet-components%2Fphp-graphs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexlet-components%2Fphp-graphs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexlet-components","download_url":"https://codeload.github.com/hexlet-components/php-graphs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexlet-components%2Fphp-graphs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"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":[],"created_at":"2026-01-13T22:51:47.915Z","updated_at":"2026-01-13T22:51:47.990Z","avatar_url":"https://github.com/hexlet-components.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# php-graphs\n\n[![github action status](https://github.com/hexlet-components/php-graphs/workflows/PHP%20CI/badge.svg)](../../actions)\n\nFunctions for working with Graphs.\n\n## Examples\n\n```php\n\u003c?php\n\nuse function Php\\Graphs\\graphs\\makeJoints;\nuse function Php\\Graphs\\graphs\\buildTreeFromLeaf;\nuse function Php\\Graphs\\graphs\\sortJoints;\n\n$tree = ['B', [\n    ['D'],\n    ['A', [\n        ['C', [\n            ['F'],\n            ['E'],\n        ]],\n    ]],\n]];\n\n$joints = makeJoints($tree);\n$transformed = buildTreeFromLeaf($joints, 'C');\n// ['C', [\n//     ['F'],\n//     ['E'],\n//     ['A', [\n//         ['B', [\n//             ['D'],\n//         ]],\n//     ]],\n// ]];\n\nsortTree($transformed);\n// ['C', [\n//     ['A', [\n//         ['B', [\n//             ['D'],\n//         ]],\n//     ]],\n//     ['E'],\n//     ['F'],\n// ]];\n```\n\n[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io?utm_source=github\u0026utm_medium=link\u0026utm_campaign=php-graphs)\n\nThis repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io?utm_source=github\u0026utm_medium=link\u0026utm_campaign=php-graphs).\n\nSee most active contributors on [hexlet-friends](https://friends.hexlet.io/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexlet-components%2Fphp-graphs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexlet-components%2Fphp-graphs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexlet-components%2Fphp-graphs/lists"}