This commit is contained in:
Francisco Matias 2017-08-28 10:25:52 -03:00
parent 419b7bba0d
commit 4481f28484
2 changed files with 8 additions and 10 deletions

View File

@ -17,14 +17,12 @@ class Graph:
g = Graph(100) g = Graph(100)
'''g.add_edge(1,3) g.add_edge(1,3)
g.add_edge(2,3) g.add_edge(2,3)
g.add_edge(3,4) g.add_edge(3,4)
g.add_edge(3,5) g.add_edge(3,5)
g.add_edge(4,5)''' g.add_edge(4,5)
for i in range(100):
for j in range(100):
g.add_edge(i,j)
g.show() g.show()

View File

@ -20,10 +20,10 @@ class Graph:
g = Graph(100) g = Graph(100)
for i in range(100): g.add_edge(1,4)
for j in range(100): g.add_edge(4,2)
g.add_edge(i,j) g.add_edge(4,5)
g.add_edge(2,5)
g.add_edge(5,3)
g.show() g.show()