Determine whether the graph homeomorphism exists and try to build it.