We relate the graph isomorphism problem to the solvability of certain systems of linear equations and linear inequalities. The number of these equations and inequalities is related to the complexity of the graphs isomorphism and subgraph isomorphim problems. 2000 Mathematics Subject Classification: 03D15, 05C50, 05C60, 15A48, 15A51, 15A69, 90C05. Keywords and phrases: graph isomorphism, subgraph isomorphism, tensor products, doubly stochastic matrices, ellipsoidal algorithm.