BNN-UPC / ignnition

Framework for fast prototyping of Graph Neural Networks
Apache License 2.0
52 stars 16 forks source link

edge types when passing messages #129

Open guelfaure opened 7 months ago

guelfaure commented 7 months ago

Hello,

Is it possible to have multiple types of edges and/or is it possible to distinguish edge types during message passing phase (in model_description)?

thanks in advance.

MiquelFerriol commented 7 months ago

Dear @guelfaure,

Thank you for reaching out!

Regarding your question about having multiple types of edges and distinguishing between them during the message-passing phase, currently, IGNITION differentiates edges based on their source/destination nodes. Therefore, in cases where you have a Multigraph (graphs with one node pair having more than one edge), there's no explicit way on how to tell IGNITION to differentiate between them.

However, to address this limitation, one potential workaround could be to transform the edges into nodes. These nodes would simultaneously connect their respective source/destination nodes and define a new message-passing mechanism between them. While this solution may not be optimal, it could serve as a means to overcome the current limitation.

I want to assure you that we are actively working to enhance IGNITION, and your feedback will be valuable in shaping future versions to better accommodate such requirements.

Having said that, we will work to take this into account in future versions of IGNNITION.

Best regards, Miquel