Linear Transformation of graphs