Replaced Edge with Adjacency Matrix