Adding functionality to Adjacency Matrix representation