Created
November 29, 2020 10:55
-
-
Save RalXYZ/b11f056bfac2befa3dba485d4831c1f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cyaron | |
f = open("input.txt", "w") | |
vertex = int(input("vertex num: ")) | |
edge = int(input("edge num: ")) | |
starting_point = int(input("starting vertex: ")) | |
graph = cyaron.Graph.graph(vertex, edge, weight_limit=(1, 100), self_loop=False, repeated_edges=False) | |
f.write(str(vertex) + " " + str(edge) + " " + str(starting_point) + "\n") | |
f.write(str(graph)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment