{"id":29091201,"url":"https://github.com/bjarndejong/mwis_tree_decomposition","last_synced_at":"2025-08-16T07:28:36.353Z","repository":{"id":298786610,"uuid":"1001124536","full_name":"bjarndejong/mwis_tree_decomposition","owner":"bjarndejong","description":"A C++ implementation of an exact solver for MWIS using dynamic programming and tree decompositions.","archived":false,"fork":false,"pushed_at":"2025-06-22T18:42:12.000Z","size":202,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-22T19:36:51.496Z","etag":null,"topics":["cplusplus","dynamic-programming","exact-algorithm","mwis","treedecompositions"],"latest_commit_sha":null,"homepage":"","language":"C++","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/bjarndejong.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}},"created_at":"2025-06-12T21:31:51.000Z","updated_at":"2025-06-22T18:42:15.000Z","dependencies_parsed_at":"2025-06-12T23:34:51.919Z","dependency_job_id":"69bbd31a-c3e8-46e6-8299-988cdd4be0f0","html_url":"https://github.com/bjarndejong/mwis_tree_decomposition","commit_stats":null,"previous_names":["bjarndejong/mwis_tree_decomposition"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bjarndejong/mwis_tree_decomposition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjarndejong%2Fmwis_tree_decomposition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjarndejong%2Fmwis_tree_decomposition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjarndejong%2Fmwis_tree_decomposition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjarndejong%2Fmwis_tree_decomposition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bjarndejong","download_url":"https://codeload.github.com/bjarndejong/mwis_tree_decomposition/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bjarndejong%2Fmwis_tree_decomposition/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265965759,"owners_count":23857052,"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":["cplusplus","dynamic-programming","exact-algorithm","mwis","treedecompositions"],"created_at":"2025-06-28T06:05:49.732Z","updated_at":"2025-07-19T16:33:01.566Z","avatar_url":"https://github.com/bjarndejong.png","language":"C++","readme":"# Exact MWIS Solver using Tree Decompositions\n\n## Command-Line Usage\n\n```bash\nmwis_smart --help\nmwis_smart [options] \u003c.td file\u003e \u003c.graph file\u003e\n```\n\n### Arguments\n\n| Argument                  | Description                                               | Required |\n|---------------------------|-----------------------------------------------------------|----------|\n| `\u003c.td file\u003e`              | Path to input tree decomposition file                     |   yes    |\n| `\u003c.graph file\u003e`           | Path to input graph file                                  |   yes    |\n\n### File Formats\n\n\n- **`.graph` file (Input Graph):**  \n  The file format is as follows:  \n  - The first line contains three integers: `n m 10`  \n    - `n` = number of vertices  \n    - `m` = number of edges  \n    - The constant `10` (format identifier)  \n  - Vertices are numbered consecutively from 1 to `n`\n  - Each of the following `n` lines describes a vertex:  \n    - The line contains the vertex weight `w(v)` followed by the vertex’s neighbors `N(v)`  \n    - Example: `7 9 10` means vertex weight 7, neighbors vertices 9 and 10  \n\n- **`.td` file (Input Tree Decomposition):**  \n  Must follow the PACE 2017 format and be sorted as follows:  \n  - Bags sorted ascending by their IDs  \n  - Each bag’s contents sorted in ascending  \n  - Edges between bags listed as pairs of bag IDs separated by space, e.g., `u v` with `u \u003c v`  \n  - The list of edges sorted lexicographically, i.e., `u v \u003c i j` if `u \u003c i`, or if `u = i` then `v \u003c j`  \n  Unsorted `.td` files may cause incorrect behavior. Preprocessing to ensure sorted order is recommended.\n\n\n### Options\n\n| Option                      | Description                                                                                 | Default |\n|-----------------------------|---------------------------------------------------------------------------------------------|---------|\n| `--track_solution=true\\|false` | Track and extract the MWIS solution.                                                     | false   |\n| `--store_c=true\\|false`        | Store intermediate data compressed to reduce memory usage.                               | false   |\n\n### Example\n\nThe `.graph` file and `.td` file from this example, together with visualizations (`.png`) of both files, are located in `data/test_set/`.\n\nRunning\n\n```bash\n./build/mwis_smart data/test_set/mytest.graph data/test_set/mytest.td --track_solution=true\n```\nfrom the root directory of the repository would result in\n\n```\n25\n0.00047671\n1 3 4 \n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjarndejong%2Fmwis_tree_decomposition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbjarndejong%2Fmwis_tree_decomposition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbjarndejong%2Fmwis_tree_decomposition/lists"}