Adjacency matrix working