Let be the set of all simple loopless undirected graphs on vertices. Let be a linear mapping, for which the independence number of is the same as the independence number for for any . We show that is necessarily a vertex permutation. Similar results are obtained for mappings preserving the matching number of bipartite graphs, the vertex cover number of undirected graphs, and the edge independence number of undirected graphs.