Skip to content

Commit 05071b5

Browse files
authored
Update graph.md
1 parent 0db9cef commit 05071b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/Data-Structure-Graphs/graph.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Graph is a non-linear data structure consisting of vertices and edges. It is a p
3232
## Representation of Graphs
3333
There are two ways to store a graph:
3434

35-
1. **Adjacency Matrix**
35+
1. **Adjacency Matrix:**
3636
In this method, the graph is stored in the form of the 2D matrix where rows and columns denote vertices. Each entry in the matrix represents the weight of the edge between those vertices.
3737

3838
```python
@@ -64,7 +64,7 @@ for row in adj_matrix:
6464

6565
```
6666

67-
2. **Adjacency List**
67+
2. **Adjacency List:**
6868
In this method, the graph is represented as a collection of linked lists. There is an array of pointer which points to the edges connected to that vertex.
6969

7070
```python

0 commit comments

Comments
 (0)