{"id":21509854,"url":"https://github.com/j-christl/ocaml-havelhakimi","last_synced_at":"2025-03-17T15:16:10.595Z","repository":{"id":78679308,"uuid":"162891158","full_name":"j-christl/OCaml-HavelHakimi","owner":"j-christl","description":"Functional implementation of the Havel-Hakimi algorithm in OCaml","archived":false,"fork":false,"pushed_at":"2019-01-02T21:35:30.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T01:11:11.123Z","etag":null,"topics":["discrete-mathematics","functional-programming","graph-theory","havel-hakimi-algorithm","ocaml"],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/j-christl.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}},"created_at":"2018-12-23T13:02:35.000Z","updated_at":"2019-01-02T21:35:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"5ada95ba-3545-4ce4-b987-247e170e0238","html_url":"https://github.com/j-christl/OCaml-HavelHakimi","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/j-christl%2FOCaml-HavelHakimi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-christl%2FOCaml-HavelHakimi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-christl%2FOCaml-HavelHakimi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/j-christl%2FOCaml-HavelHakimi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/j-christl","download_url":"https://codeload.github.com/j-christl/OCaml-HavelHakimi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056430,"owners_count":20390720,"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":["discrete-mathematics","functional-programming","graph-theory","havel-hakimi-algorithm","ocaml"],"created_at":"2024-11-23T21:32:34.889Z","updated_at":"2025-03-17T15:16:10.590Z","avatar_url":"https://github.com/j-christl.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCaml-HavelHakimi\nFunctional implementation of the Havel-Hakimi algorithm (https://en.wikipedia.org/wiki/Havel%E2%80%93Hakimi_algorithm) in OCaml\n\n```ocaml\nval havel_hakimi : int list -\u003e bool = \u003cfun\u003e\n```\n\n## Examples\n\n### Example 1\n```ocaml\n# havel_hakimi [1;1;2;3;4;4;5];;\n5 4 4 3 2 1 1 \n3 3 2 1 0 1  (unsorted)\n3 3 2 1 1 0 \n2 1 0 1 0  (unsorted)\n2 1 1 0 0 \n0 0 0 0  (unsorted)\n0 0 0 0 \n- : bool = true\n```\n\n### Example 2\n```ocaml\n# havel_hakimi [2;2;2;2;3];;\n3 2 2 2 2 \n1 1 1 2  (unsorted)\n2 1 1 1 \n0 0 1  (unsorted)\n1 0 0 \n-1 0  (unsorted)\n0 -1 \n- : bool = false\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-christl%2Focaml-havelhakimi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fj-christl%2Focaml-havelhakimi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fj-christl%2Focaml-havelhakimi/lists"}