There was an error while loading. Please reload this page.
1 parent 5656b61 commit 5e6df9fCopy full SHA for 5e6df9f
Section_12(Graphs)/(1)_graph.py
@@ -94,4 +94,8 @@ def indegree(self, v):
94
for i in range(self._vertices):
95
if self._adjacent_matrix[i][v] != 0:
96
count = count + 1
97
- return count
+ return count
98
+
99
+ # Helper function to display adjacency matrix
100
+ def display_adjacent_matrix(self):
101
+ print(self._adjacent_matrix)
0 commit comments