New implementation for GraphMatrix(redundance of values)