{"id":18441339,"url":"https://github.com/dubadub/topo_sort","last_synced_at":"2025-04-14T17:55:50.441Z","repository":{"id":69308066,"uuid":"20596781","full_name":"dubadub/topo_sort","owner":"dubadub","description":null,"archived":false,"fork":false,"pushed_at":"2014-06-07T16:36:36.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T09:15:35.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/dubadub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-07T16:00:46.000Z","updated_at":"2016-11-28T18:43:49.000Z","dependencies_parsed_at":"2023-02-21T03:25:43.255Z","dependency_job_id":null,"html_url":"https://github.com/dubadub/topo_sort","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/dubadub%2Ftopo_sort","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubadub%2Ftopo_sort/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubadub%2Ftopo_sort/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dubadub%2Ftopo_sort/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dubadub","download_url":"https://codeload.github.com/dubadub/topo_sort/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248932458,"owners_count":21185341,"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":[],"created_at":"2024-11-06T06:36:56.462Z","updated_at":"2025-04-14T17:55:50.411Z","avatar_url":"https://github.com/dubadub.png","language":"Ruby","readme":"# TopoSort\n\nTake a hash of elements and their dependencies and sort\nthem in an order where each element required is before\nthe elements that require it.\n\nNote. Each element can have only one dependency.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'topo_sort'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install topo_sort\n\n## Example usage\n\n    nodes  = { 'a' =\u003e nil, 'b' =\u003e 'c', 'c' =\u003e 'f', 'd' =\u003e 'a', 'e' =\u003e 'b', 'f' =\u003e nil }\n\n    TopoSort.sort(nodes)\n    #=\u003e [\"a\", \"f\", \"c\", \"b\", \"d\", \"e\"]\n\n## Run tests\n\nRun tests with:\n\n    rake\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubadub%2Ftopo_sort","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdubadub%2Ftopo_sort","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdubadub%2Ftopo_sort/lists"}