Skip to content

Commit 006cf09

Browse files
authored
Update graph matrix formatting in notes
1 parent 069846f commit 006cf09

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

notes/graphs.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,17 @@ An adjacency matrix represents a graph $G$ with $V$ vertices as a two-dimensiona
8686

8787
Here, the matrix indicates a graph with vertices A to D. For instance, vertex A connects with vertices B and D, hence the respective 1s in the matrix.
8888

89-
**Matrix (large ASCII layout):**
89+
**Matrix:**
9090

9191
```
92+
4x4
9293
Columns →
9394
A B C D
9495
+---+---+---+---+
95-
Row A | 0 | 1 | 0 | 1 |
96-
↓ B | 1 | 0 | 1 | 0 |
97-
C | 0 | 1 | 0 | 1 |
98-
D | 1 | 0 | 1 | 0 |
96+
Row A | 0 | 1 | 0 | 1 |
97+
B | 1 | 0 | 1 | 0 |
98+
C | 0 | 1 | 0 | 1 |
99+
D | 1 | 0 | 1 | 0 |
99100
+---+---+---+---+
100101
```
101102

0 commit comments

Comments
 (0)