adjcency matrix updated