Matrix Representation Of Weighted Graph