Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Edge.unweighted_edge #34

Merged
merged 2 commits into from
Jan 15, 2018
Merged

add Edge.unweighted_edge #34

merged 2 commits into from
Jan 15, 2018

Conversation

WAAutoMaton
Copy link
Contributor

add Edge.unweighted_edge

@WAAutoMaton
Copy link
Contributor Author

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一行的格式

@lin-toto lin-toto merged commit a786315 into luogu-dev:master Jan 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants