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 for all nodes, mark 1 where edges exist, 0 otherwise.
