mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-24 13:31:07 +00:00
--
This commit is contained in:
parent
419b7bba0d
commit
4481f28484
|
@ -17,14 +17,12 @@ class Graph:
|
|||
|
||||
g = Graph(100)
|
||||
|
||||
'''g.add_edge(1,3)
|
||||
g.add_edge(1,3)
|
||||
g.add_edge(2,3)
|
||||
g.add_edge(3,4)
|
||||
g.add_edge(3,5)
|
||||
g.add_edge(4,5)'''
|
||||
for i in range(100):
|
||||
for j in range(100):
|
||||
g.add_edge(i,j)
|
||||
g.add_edge(4,5)
|
||||
|
||||
|
||||
g.show()
|
||||
|
||||
|
|
|
@ -20,10 +20,10 @@ class Graph:
|
|||
|
||||
g = Graph(100)
|
||||
|
||||
for i in range(100):
|
||||
for j in range(100):
|
||||
g.add_edge(i,j)
|
||||
|
||||
|
||||
g.add_edge(1,4)
|
||||
g.add_edge(4,2)
|
||||
g.add_edge(4,5)
|
||||
g.add_edge(2,5)
|
||||
g.add_edge(5,3)
|
||||
g.show()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user