Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Or, if you want them connected, let $G$ be a 6-cycle with an extra edge between vertices 1 and 3, and $H$ a 6-cycle with an extra edge between vertices 1 and 4.
Let $G$ be a 6-cycle and let $H$ be two 3-cycles.
Let $G$ be a 6-cycle and let $H$ be two 3-cycles.
Or, if you want them connected, let $G$ be a 6-cycle with an extra edge between vertices 1 and 3, and $H$ a 6-cycle with an extra edge between vertices 1 and 4.