Skip to content

Commit

Permalink
--
Browse files Browse the repository at this point in the history
  • Loading branch information
frmatias committed Aug 28, 2017
1 parent 419b7bb commit 4481f28
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
8 changes: 3 additions & 5 deletions Graphs/Graph_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,12 @@ def show(self):

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()

10 changes: 5 additions & 5 deletions Graphs/Graph_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def show(self):

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()

0 comments on commit 4481f28

Please sign in to comment.