the following question came up in a problem I am working on:
Suppose you have two graphs $G_1=(V_1, E_1), G_2=(V_2,E_2)$ that have features attached to them, i.e. to every $v\in V_1$ or $v\in V_2$ there is a vector $w_v\in\mathbb R^n$ with fixed $n$ of features mapped to, and similarly for all edges. We call two of these graphs isomorphic, if there exists a bijective function $f: V_1\to V_2$, such that $$uv\in E_1\Leftrightarrow f(u)f(v)\in E_2,$$ $$w_u=w_{f(u)}\text{ and}$$ $$w_{uv}=w_{f(u)f(v)}$$ for all $u,v\in V_1$.
Given such two graphs, what would be the best way to get the maximal isomorphic subgraphs, i.e. a subgraph of $G_1$ induced by a set of vertices $U_1$, such that there exists an injective $f:U_1\to V_2$ like above (with $E_1, E_2$ replaced by the appropriate induced edge sets) that has a maximal amount of vertices.
Thanks in advance!