Fixed Adjancy Matrix to support Edge Class