Initialized the adjacency matrix (wrongly)
Note: The diagonal elements must be zero