Graph Neural Networks

I’m getting variable number of edges in graph neural networks. How to input variable number of edges and also the node for input is common to second input in my case which leads to the out of bounds problem