Quidest?

Adjacency Matrix for Graphs

ยท Lorenzo Drumond

An adjacency matrix is a square matrix used to represent a finite graph. The elements of the matrix indicate whether pairs of vertices are adjacent or not in the graph. true indicates the presence of an edge, false represents the absence.

01234
0falsetruefalsefalsetrue
1truefalsetruetruetrue
2falsetruefalsetruefalse
3falsetruetruefalsetrue
4truetruefalsetruefalse

References

Next -> adjacency-list-for-graphs

#matrix #computer_science #search #function #structure #boot_dev #hash #graph #adjacency #programming #data #memory