Concept Flow - Adjacency Matrix Representation
Start
Create NxN matrix
Initialize all cells to 0
For each edge (u,v)
Set matrix[u
If undirected, set matrix[v
Repeat for all edges
Adjacency matrix ready
Build a square matrix where each cell shows if an edge exists between two nodes.