Closed WAAutoMaton closed 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一行的格式
add
Edge.unweighted_edge