I am looking at methods for GNN to process GNN based on entity graph generated on objects on the image. Node represent each object and edge is connected between two nodes if two objects' Euclidean distance is lower than a threshold. Let's say the Graph is represented as G=(V,E). But for every graph there might be different number of object detected and different number of connections. How can a GNN be able to learn to process different number of node(with different number of neighbour) as input, and during inference how can a model be able to use the model learn to obtain a result? How would the weights shape look like?
I have tried thinking about ways to pool or limit number of nodes in a graph, but that does not seem like a smart way to do it. I am pretty struggling with this at the moment. Would really appreciate it if there is any help.
Thanks.