Cyaron

Latest version: v0.7.0

Safety actively analyzes 714772 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.7.0

- 支持通过参数初始化随机数种子 (160)
- 支持根据度数序列生成图 (159)
- 解决通过 output_gen 生成输出文件时换行符的相关问题(152)
- 修复子进程 timed out 时可能不会被 kill (156)
- 支持随机生成森林 (146)
- 修复 vector 生成可重复序列时可能会报错的问题 (141)
- IO 对象支持在找不到路径时自动创建文件夹 (137)
- IO 对象支持清空文本内容 (137)

0.6.0

- 项目修改为 poetry 打包;
- 为 IO.output_gen 方法增加 time_limit 参数 (114)
- 添加将图转换为邻接矩阵的方法 (134)
- Miller-Rabin 算法特判 2 和 3 的因子 (133)
- 为生成连通图的方法([`Graph.DAG`](https://github.com/luogu-dev/cyaron/blob/476534c3abd07f40f93b32fd5ba27fc7140e037c/cyaron/graph.py#L328-L396),[`Graph.UDAG`](https://github.com/luogu-dev/cyaron/blob/476534c3abd07f40f93b32fd5ba27fc7140e037c/cyaron/graph.py#L398-L458))添加别名 [`Graph.connected`](https://github.com/luogu-dev/cyaron/blob/476534c3abd07f40f93b32fd5ba27fc7140e037c/cyaron/graph.py#L460-L470) (131)
- 随机图中,在边数过多时抛出错误 (129, solved 86 95)
- 允许用户生成一棵树时指定生成父节点的方式 (127)
- 修复 Vector.random 的 mode 参数不生效的问题 (110)

0.5.0

* 提高 graph.py 中 binary_tree() 的效率 by Sweetlemon68 (80)
* fixes 92 and restructure Vector.py by bzy-nya (94)
* Update math.py by houmy555809 (98)
* `fractions.gcd` -> `math.gcd` (84)

**Full Changelog**: https://github.com/luogu-dev/cyaron/compare/0.4.3...0.5.0

0.4.3

- Fix install requirements (73)
- Make sure formula in Sequence is callable (52)
- Support generating strings with RegExp (64)
- Fix some bug

0.4.2

Fix https://github.com/luogu-dev/cyaron/pull/46

0.4.1

- Support DAG generation https://github.com/luogu-dev/cyaron/pull/45
- Fixed filename generation issue https://github.com/luogu-dev/cyaron/pull/44

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.