# Graph neural network

I'm trying to build GNN model that classify images , the first step is to model each image with graph , each node represents one pixel , now how can I define the edges in my case ? does the spatial distance will be okay ?

• This is a rather broad question. – Yuval Filmus Oct 10 '19 at 12:46