Nepedia
Back to Discover
Independent Reader
🔢

Adjacency matrix

math Maturity 7-9 Next article →

Imagine a group of dots joined by lines.

6n-graph2
6n-graph2

In math, we call these dots vertices. We can use a square grid of numbers to map them. This grid is an adjacency matrix. It tells us if dots are connected.

In a simple graph, we use ones and zeros. A one means a line joins two dots. A zero means there is no connection.

Symmetric group 4; Cayley graph 4,9 (adjacency matrix)
Symmetric group 4; Cayley graph 4,9 (adjacency matrix)

If the lines go both ways, the grid is symmetric. This means the top and bottom match. If lines only go one way, the grid is not symmetric.

Symmetric group 4; Cayley graph 1,5,21 (adjacency matrix)
Symmetric group 4; Cayley graph 1,5,21 (adjacency matrix)

Computers use these grids to store data. One way is to use an adjacency list. This is a different way to show connections. An adjacency matrix is great for checking if two dots connect. It can even help us count paths. We can find the shortest path between dots using these grids. This helps computers solve many puzzles.

149 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (5)
File:6n-graph2.svg
6n-graph2.svg
File:Symmetric group 4; Cayley graph 1,5,21 (Nauru Petersen); numbers.svg
Symmetric group 4; Cayley graph 1,5,21...
File:Symmetric group 4; Cayley graph 1,5,21 (adjacency matrix).svg
Symmetric group 4; Cayley graph 1,5,21...
File:Symmetric group 4; Cayley graph 4,9; numbers.svg
Symmetric group 4; Cayley graph 4,9; numbers.svg
File:Symmetric group 4; Cayley graph 4,9 (adjacency matrix).svg
Symmetric group 4; Cayley graph 4,9...
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.