{"id":23907750,"url":"https://github.com/fliegendewurst/hypergraph-drawing","last_synced_at":"2026-06-21T00:34:39.584Z","repository":{"id":130767547,"uuid":"497596122","full_name":"FliegendeWurst/hypergraph-drawing","owner":"FliegendeWurst","description":"Drawing hypergraphs using Graphviz and Asymptote","archived":false,"fork":false,"pushed_at":"2023-07-18T06:39:07.000Z","size":67,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T14:43:43.846Z","etag":null,"topics":["asymptote","graphviz","hypergraph"],"latest_commit_sha":null,"homepage":"","language":"Python","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/FliegendeWurst.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":"2022-05-29T13:17:13.000Z","updated_at":"2023-11-04T18:52:19.000Z","dependencies_parsed_at":"2025-02-23T14:41:43.862Z","dependency_job_id":"53118bb6-4958-475f-b5bf-cd2c7a08c2af","html_url":"https://github.com/FliegendeWurst/hypergraph-drawing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FliegendeWurst/hypergraph-drawing","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FliegendeWurst%2Fhypergraph-drawing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FliegendeWurst%2Fhypergraph-drawing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FliegendeWurst%2Fhypergraph-drawing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FliegendeWurst%2Fhypergraph-drawing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FliegendeWurst","download_url":"https://codeload.github.com/FliegendeWurst/hypergraph-drawing/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FliegendeWurst%2Fhypergraph-drawing/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34590214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["asymptote","graphviz","hypergraph"],"created_at":"2025-01-05T03:14:12.956Z","updated_at":"2026-06-21T00:34:39.578Z","avatar_url":"https://github.com/FliegendeWurst.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hypergraph drawing using Graphviz and Asymptote\n\n## Usage\n\nRequires Python 3 (tested with 3.9.13), [pydot](https://pypi.org/project/pydot/) (tested with 1.4.2), [Asymptote](https://asymptote.sourceforge.io/) (tested with 2.67) and LaTeX (tested with TeX Live 2021).\n\nTo render a hypergraph specified in `graph.dot`, execute the following:\n```bash\ncat graph.dot | dot -Tdot | python3 ./dot_hypergraph_to_asymptote.py /dev/stdin \u003e graph.asy\nasy -f png graph.asy\n```\nYou may adjust the font size, width/height of the output and more by editing the values at the beginning of the script.\n\nTo embed the graph in a LaTeX document, set `output_latex` to true.\n```latex\n\\usepackage[inline]{asymptote}\n% ...\n\\begin{figure}\n  \\centering\n  \\input{output.asy}\n  \\caption{...}\n  \\label{fig:...}\n\\end{figure}\n```\n\n## Example\n\n| Original graph | Asymptote rendering |\n| -------------- | ------------------- |\n| ![dot rendering](./graph_dot.png) | ![asymptote rendering](./graph.png) |\n\n`graph.dot`:\n```\ndigraph {\n\tedge [dir=\"back\"];\n\t\"Node 1\" -\u003e \"Node 2\" [label=\"Edge 1\"]\n\t\"Node 1\" -\u003e \"Node 3\" [label=\"Edge 1\"]\n\t\"Node 3\" -\u003e \"Node 4\" [label=\"Edge 2\"]\n\t\"Node 3\" -\u003e \"Node 5\" [label=\"Edge 2\"]\n\t\"Node 5\" -\u003e \"Node 6\" [label=\"Edge 3\"]\n\t\"Node 4\" -\u003e \"Node 6\" [label=\"Edge 3\"]\n\t\"Node 2\" -\u003e \"Node 7\" [label=\"Edge 4\"]\n\t\"Node 6\" -\u003e \"Node 7\" [label=\"Edge 4\"]\n\t\"Node 2\" -\u003e \"Node 8\" [label=\"Edge 5\"]\n\t\"Node 7\" -\u003e \"Node 8\" [label=\"Edge 5\"]\n}\n```\n\n## Credits\n\nThe generated code is based on https://tex.stackexchange.com/a/108099/185782 by g.kov.\n\n## License\n\n[CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)\n (open an issue if you'd prefer a different license)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffliegendewurst%2Fhypergraph-drawing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffliegendewurst%2Fhypergraph-drawing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffliegendewurst%2Fhypergraph-drawing/lists"}