An adjacency list is a list that tracks what’s adjacent to each node in a graph:



An adjacency matrix is a 2D matrix that stores a value for every possible pair of nodes in your graph. That value determines whether or not that pair of nodes points to each other.
array[i][j]
= true
or 1
, that means node i points to node j.array[j][i]
will be the same. 
Properties