Refactor Graph

Made Adjacentcy Matrix for Weights