{"id":21607945,"url":"https://github.com/arc-hugo/debt_calculator","last_synced_at":"2025-03-18T15:23:54.610Z","repository":{"id":45110051,"uuid":"427287718","full_name":"arc-hugo/debt_calculator","owner":"arc-hugo","description":"Implementation project of an algorithm computing the max-flow of a flow graph and apply it in a debt calculator app.","archived":false,"fork":false,"pushed_at":"2022-01-08T13:32:13.000Z","size":70,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-24T19:36:50.087Z","etag":null,"topics":["flow","ford-fulkerson-algorithm","functional-programming","graph","ocaml"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arc-hugo.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-11-12T08:37:30.000Z","updated_at":"2022-01-12T11:40:22.000Z","dependencies_parsed_at":"2022-08-31T05:01:51.903Z","dependency_job_id":null,"html_url":"https://github.com/arc-hugo/debt_calculator","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/arc-hugo%2Fdebt_calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arc-hugo%2Fdebt_calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arc-hugo%2Fdebt_calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arc-hugo%2Fdebt_calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arc-hugo","download_url":"https://codeload.github.com/arc-hugo/debt_calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244246660,"owners_count":20422477,"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":["flow","ford-fulkerson-algorithm","functional-programming","graph","ocaml"],"created_at":"2024-11-24T20:34:43.795Z","updated_at":"2025-03-18T15:23:54.584Z","avatar_url":"https://github.com/arc-hugo.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCaml Graph Project : Debt calculator\n\nImplementation project of an algorithm computing the max-flow of a flow graph and apply it in a debt calculator app.  \nOur application behavior is based on [this article](https://hackernoon.com/max-flow-algorithm-in-real-life-551ebd781b25).\n\n## Requierements\n- [opam](https://opam.ocaml.org/) package manager to install ocaml\n- [dune](https://dune.build/) build system to build, test and execute this app\n- [Graphviz](https://graphviz.org/) visualization software to generate image files from app results\n\n## Getting started\n### Installation\n```bash\ngit clone https://github.com/arc-hugo/debt_calculator/\ncd debt_calculator\ndune build\n```\n### Test\n```bash\ndune test -f\n```\n### Usage\n```bash\ndune exec bin/debt.exe infile outfile\n```\nGiven infile need to follow this format.\n```\nName1 MoneyPaid1\\n\nName2 MoneyPaid2\\n\n....\nNameN MoneyPaidN\n```\nResulting output file will be in [DOT language](https://www.graphviz.org/doc/info/lang.html).  \nIt can then be converted in an image by the [dot layout engine](https://www.graphviz.org/docs/layouts/dot/) or an equivalent.\n### Example\nAs an example, you can pick the [debt record](graphs/debt1) in graphs folder.  \n```\nJohn 40\nKate 10\nAnn 10\n```\nThe resulting image will be this :  \n![debt graph result](./graphs/debt1.svg)\n\n## Maintainers\n- [Hugo Barral](https://github.com/arc-hugo/)\n- [Aubry Dubois](https://github.com/adubois31/) \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farc-hugo%2Fdebt_calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farc-hugo%2Fdebt_calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farc-hugo%2Fdebt_calculator/lists"}