What criterias do two graphs have to meet in order to be isomorphic?

I know they must have the same number of vertices and edges. Do they both have to be bipartite/non-bipartite?

Bipartite.