luogu-dev / cyaron

CYaRon: Yet Another Random Olympic-iNformatics test data generator
GNU Lesser General Public License v3.0
1.32k stars 164 forks source link

add ``Edge.unweighted_edge`` #34

Closed WAAutoMaton closed 6 years ago

WAAutoMaton commented 6 years ago

add Edge.unweighted_edge

WAAutoMaton commented 6 years ago

io.input_writeln(graph) # 输出这个图,以每条边u v w一行的格式 io.input_writeln(graph.to_str(shuffle=True)) # 打乱边的顺序并输出这个图 io.input_writeln(graph.to_str(output=my_func)) # 使用my_func函数替代默认的输出函数,请查看源代码以理解使用方法

wiki这里加一句

io.input_writeln(graph.to_str(output=Edge.unweighted_edge)) # 输出无权图,以每条边u v一行的格式