We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 419b7bb commit 4481f28Copy full SHA for 4481f28
Graphs/Graph_list.py
@@ -17,14 +17,12 @@ def show(self):
17
18
g = Graph(100)
19
20
-'''g.add_edge(1,3)
+g.add_edge(1,3)
21
g.add_edge(2,3)
22
g.add_edge(3,4)
23
g.add_edge(3,5)
24
-g.add_edge(4,5)'''
25
-for i in range(100):
26
- for j in range(100):
27
- g.add_edge(i,j)
+g.add_edge(4,5)
+
28
29
g.show()
30
Graphs/Graph_matrix.py
@@ -20,10 +20,10 @@ def show(self):
-
+g.add_edge(1,4)
+g.add_edge(4,2)
+g.add_edge(2,5)
+g.add_edge(5,3)
0 commit comments