# How does a GCN handle new input graphs?

Quick questions to see whether I understand GCNs correctly.

Is it correct that, if I have trained a GCN, it can take arbitrary graphs as input, assuming the feature size is the same?

I can't seem to find explicit literature on this.

$$h_v^{t+1} = \sigma\left({\bf W}^{t+1} \sum_{u \in \mathcal{N}_v} {\bf L}_{uv}~ h_u^t \right)$$
where $$h_v^l$$ is the representation of node $$v$$ at update $$t$$, $$\sigma$$ is an activation function, $${\bf W^{t}}$$ is a weight matrix, $${\bf L_{uv}}$$ is the value of the graph Laplacian (which is a matrix) at nodes $$u$$ and $$v$$, and finally $$\mathcal{N}_v$$ is the neighborhood of $$v$$. Looking at this expression it becomes clear that the value of the summation is always of the same dimension as $$h$$, no matter how you define the neighborhood $$\mathcal{N}_v$$. So you are correct that as long as the node representation size is static, the network can take arbitrary graphs as input.