cyaron icon indicating copy to clipboard operation
cyaron copied to clipboard

望加强图生成部分

Open iamgqr opened this issue 8 years ago • 12 comments

可以做无权图(虽然现在可以做但是必须手写函数)、DAG图吗?还有重边、自环的控制,望加强。如果还有基环图、仙人掌图,就更好了~ =D

另:有随机询问生成器吗。。。

iamgqr avatar May 16 '17 14:05 iamgqr

随机询问的话,自己randint基本就可以了吧

lin-toto avatar May 16 '17 17:05 lin-toto

好的,但是如果题目例如说“询问的两个节点必须在同一个联通快内”好像比较麻烦。。。 对了怎么生成连通图 但是还是狠滋磁的 滋磁dalao

iamgqr avatar May 30 '17 01:05 iamgqr

好像不存在这个feature的样子

lin-toto avatar May 30 '17 09:05 lin-toto

@fjzzq2002 连通图这个,您有什么想法啊

lin-toto avatar Jul 03 '17 05:07 lin-toto

用个并查集什么的,当剩余边数等于并查集数量的时候,只允许连接在两个不同并查集中的节点(否则重新rand),应该不是很难写吧QAQ

iamgqr avatar Jul 09 '17 06:07 iamgqr

还有DAG。。qwq好多算法都不能用啊

ghost avatar Aug 26 '17 11:08 ghost

。。。

imdlxx avatar Nov 19 '17 09:11 imdlxx

现在可以生成无权图了(其实就是原来要手写的输出函数现在内置了一个)

WAAutoMaton avatar Jan 17 '18 13:01 WAAutoMaton

emmm那很好啊

Sent from my iPhone

On 17 Jan 2018, at 21:36, WAAutoMaton [email protected] wrote:

现在可以生成无权图了(其实就是原来要手写的输出函数现在内置了一个)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

imdlxx avatar Jan 29 '18 01:01 imdlxx

我已经实现了 DAG,等有空我把测试写完之后我发一个 PR。
可以先去这里参观一下。
我的 DAG 其实就是在树的基础上加工一下,希望勿喷。

YanWQ-monad avatar Sep 03 '18 14:09 YanWQ-monad

关于有向图的环,我可能还要再思考一下

YanWQ-monad avatar Sep 04 '18 05:09 YanWQ-monad

铜球连通图。。一稀疏了就不联通了。。

qinwang-ai avatar Nov 14 '19 14:11 qinwang-ai