Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.56 KB

message.rst

File metadata and controls

46 lines (34 loc) · 1.56 KB

Chapter 2: Message Passing

(中文版) <guide_cn-message-passing>

Message Passing Paradigm

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 ρ.

Roadmap

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