Skip to content

Commit 00e9b38

Browse files
Update graph_adjacency-matrix.py
1 parent a097b55 commit 00e9b38

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

graph_adjacency-matrix.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# implementation of an undirected graph using Adjacency Matrix, with weighted or unweighted edges
2+
# its definitely work
23
class Vertex:
34
def __init__(self, n):
45
self.name = n
@@ -46,4 +47,4 @@ def print_graph(self):
4647
for edge in edges:
4748
g.add_edge(edge[:1], edge[1:])
4849

49-
g.print_graph()
50+
g.print_graph()

0 commit comments

Comments
 (0)