{"id":37083668,"url":"https://github.com/weilycoder/rdgc","last_synced_at":"2026-01-14T10:12:36.072Z","repository":{"id":283304017,"uuid":"951196833","full_name":"weilycoder/rdgc","owner":"weilycoder","description":"RDGC Data Generator for Contests","archived":false,"fork":false,"pushed_at":"2025-08-22T12:01:08.000Z","size":93,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-25T14:48:34.365Z","etag":null,"topics":["oi"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/rdgc/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/weilycoder.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-19T10:02:39.000Z","updated_at":"2025-08-22T12:01:12.000Z","dependencies_parsed_at":"2025-03-19T15:25:55.622Z","dependency_job_id":"2b2605d6-3a77-4790-ab3a-9eb55fc937a9","html_url":"https://github.com/weilycoder/rdgc","commit_stats":null,"previous_names":["weilycoder/rdgc"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/weilycoder/rdgc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weilycoder%2Frdgc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weilycoder%2Frdgc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weilycoder%2Frdgc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weilycoder%2Frdgc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weilycoder","download_url":"https://codeload.github.com/weilycoder/rdgc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weilycoder%2Frdgc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["oi"],"created_at":"2026-01-14T10:12:35.327Z","updated_at":"2026-01-14T10:12:36.064Z","avatar_url":"https://github.com/weilycoder.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RDGC Data Generator for Contests\n\n[![Release](https://img.shields.io/github/v/release/weilycoder/rdgc)](https://github.com/weilycoder/rdgc/releases/)\n![Last Commit](https://img.shields.io/github/last-commit/weilycoder/rdgc)\n[![github](https://img.shields.io/badge/github-rdgc-blue?logo=github)](https://github.com/weilycoder/rdgc)\n[![PyPI](https://img.shields.io/badge/PyPI-rdgc-blue?logo=pypi)](https://pypi.org/project/rdgc/)\n[![sata-license](https://img.shields.io/badge/License-SATA-green)](https://github.com/zTrix/sata-license)\n\n[![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-raw/weilycoder/rdgc)](https://github.com/weilycoder/rdgc/issues)\n![GitHub Downloads](https://img.shields.io/github/downloads/weilycoder/rdgc/total)\n![Stars](https://img.shields.io/github/stars/weilycoder/rdgc)\n![Forks](https://img.shields.io/github/forks/weilycoder/rdgc)\n\n由于我现在常用的数据生成器在 API 设计上令人迷惑，我决定自己编写一个生成器。\n\n## features\n\n目前计划支持的特性：\n\n+ [x] 生成随机图\n  + [x] 随机图\n  + [x] 空图（null graph）\n  + [x] 完全图（complete graph）\n  + [x] 竞赛图（tournament graph）\n  + [x] 随机树（随机父亲）\n  + [x] 随机树（随机连边）\n  + [x] 二叉树（binary tree）\n  + [x] 链图（chain graph）\n  + [x] 菊花图（star graph）\n  + [x] 圈图（cycle graph）\n  + [x] 轮图（wheel graph）\n  + [x] 从度数序列随机生成图（蒙特卡洛方法）\n  + [x] 生成 $k$-正则图（ $k$-regular Graph）\n  + [x] 生成网格图\n  + [x] 将多个图组合在一起\n+ [x] 生成特定类型的数字\n  + [x] 支持从范围中随机选择质数。\n+ [x] 生成特定类型的数字序列\n  + [x] 生成给定递推函数的序列（递归实现）\n+ [ ] 调用 std 生成 ans 文件\n+ [x] 杂项\n  + [x] 从命令行参数获取随机种子\n  + [x] 批量将 CRLF 格式转换为 LF 格式\n\n## PyPI\n\n项目上传了 [PyPI](https://pypi.org/project/rdgc/)，因此你可以使用：\n\n```bash\npip install rdgc\n```\n\n来下载最新版。\n\n项目也将同时上传到 [Test PyPI](https://test.pypi.org/project/rdgc/)，因此也可以：\n\n```bash\npip install -i https://test.pypi.org/simple/ rdgc\n```\n\n当然，后者不是推荐行为。\n\n## Semantic Versioning\n\n原则上，我是支持 [语义化版本](https://semver.org/lang/zh-CN/) 的，但是由于现在项目随时可能出现 Bug 和 idea，并可能由于使 API 更可读而重构，因此将项目版本号维持在 `0.x.x` 以说明处于快速开发阶段。\n\n计划在完成大部分 idea 后进行一次重构并将版本号改为 `1.x.x`。\n\n目前尽量遵循以下规范：\n\n+ 若引入了重要的数据生成 API（被记录在 README 文件），则将次版本号递增；\n+ 若加入了小的 API 或 Bug 修复，将修订号递增。\n\n当然，暂时更可能看我心情。\n\n## License\n\n项目没有额外声明的部分使用 [SATA](https://github.com/zTrix/sata-license) 许可证，如果你认为我的项目有用，请考虑在 [Github](https://github.com/weilycoder/rdgc) 为我点赞。\n\n项目的 API 设计参考了 [CYaRon](https://github.com/luogu-dev/cyaron)，如果有人认为我需要为此修改许可证，请联系我；后者的推荐方式是在 [issue](https://github.com/weilycoder/rdgc/issues) 中说明。\n\n## Pylint\n\n项目使用 Pylint 检查 Python 语法。\n\n全局禁用的检查包括：\n\n+ unnecessary-lambda-assignment (C3001)\n+ duplicate-code (R0801)\n+ too-many-public-methods (R0904)\n+ too-many-return-statements (R0911)\n+ too-many-branches (R0912)\n+ too-many-arguments (R0913)\n+ too-many-locals (R0914)\n+ keyword-arg-before-vararg (W1113)\n\n在测试脚本中禁用了所有出现的警告，包括但不限于注释缺失。\n\n在项目主文件中禁用的警告使用具体名称而非代码。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweilycoder%2Frdgc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweilycoder%2Frdgc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweilycoder%2Frdgc/lists"}