(中文版) <guide_cn-message-passing>
Let xv ∈ ℝd1 be the feature for node v, and we ∈ ℝd2 be the feature for edge (u, v). The message passing paradigm defines the following node-wise and edge-wise computation at step t + 1:
Edge-wise: me(t + 1) = ϕ(xv(t),xu(t),we(t)), (u, v, e) ∈ ℰ.
Node-wise: xv(t + 1) = ψ(xv(t),ρ({me(t + 1):(u,v,e)∈ℰ})).
In the above equations, ϕ is a message function defined on each edge to generate a message by combining the edge feature with the features of its incident nodes; ψ is an update function defined on each node to update the node feature by aggregating its incoming messages using the reduce function ρ.
This chapter introduces DGL's message passing APIs, and how to efficiently use them on both nodes and edges. The last section of it explains how to implement message passing on heterogeneous graphs.
guide-message-passing-api
guide-message-passing-efficient
guide-message-passing-part
guide-message-passing-heterograph
message-api message-efficient message-part message-heterograph