Skip to main content

RDGC Data Generator for Contests

Project description

RDGC Data Generator for Contests

Release github Test PyPI sata-license GitHub Issues or Pull Requests Stars Forks

由于我现在常用的数据生成器在 API 设计上令人迷惑,我决定自己编写一个生成器。

features

目前计划支持的特性:

  • 生成随机图
    • 随机图
    • 空图(null graph)
    • 完全图(complete graph)
    • 竞赛图(tournament graph)
    • 随机树(随机父亲)
    • 随机树(随机连边)
    • 二叉树(binary tree)
    • 链图(chain graph)
    • 菊花图(star graph)
    • 圈图(cycle graph)
    • 轮图(wheel graph)
    • 从度数序列随机生成图(蒙特卡洛方法)
    • 生成 $k$-正则图($k$-regular Graph)
  • 生成特定类型的数字
  • 生成特定类型的数字序列
    • 生成给定递推函数的序列(递归实现)
  • 调用 std 生成 ans 文件
  • 杂项
    • 从命令行参数获取随机种子
    • 批量将 CRLF 格式转换为 LF 格式

Semantic Versioning

原则上,我是支持 语义化版本 的,但是由于现在项目随时可能出现 Bug 和 idea,并可能由于使 API 更可读而重构,因此将项目版本号维持在 0.x.x 以说明处于快速开发阶段。

计划在完成大部分 idea 后进行一次重构并将版本号改为 1.x.x

目前尽量遵循以下规范:

  • 若引入了重要的数据生成 API(被记录在 README 文件),则将次版本号递增;
  • 若加入了小的 API 或 Bug 修复,将修订号递增。

当然,暂时更可能看我心情。

License

项目没有额外声明的部分使用 SATA 许可证,如果你认为我的项目有用,请考虑为我点赞。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdgc-0.3.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rdgc-0.3.1-py3-none-any.whl (13.7 kB view details)

Uploaded Python 3

File details

Details for the file rdgc-0.3.1.tar.gz.

File metadata

  • Download URL: rdgc-0.3.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for rdgc-0.3.1.tar.gz
Algorithm Hash digest
SHA256 503bedb99ef930ebe2f731cd1d86c19dec18338175ae5e931115277a505112b4
MD5 fe3373c427a745fced25011d888f2924
BLAKE2b-256 c0385de3c5aee3c130fe1f7394142d084a1a49fde8bfa236ba7b3b4def451659

See more details on using hashes here.

File details

Details for the file rdgc-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: rdgc-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 13.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for rdgc-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 604427b21746fa12b1ef4926e2022bb9efe1de3c234b88fe1130ceb426e1081c
MD5 67be7b64c6b17ac1dafb614f3df34937
BLAKE2b-256 5c3ecbac603695b7999f5a22a9b7f4ab8f61b2f329bc2181e8c31aa89dcc8b6a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page