torch_geometric.nn.conv.WLConv
- class WLConv[source]
Bases:
Module来自“将图简化为规范形式及其过程中产生的代数”论文的Weisfeiler Lehman (WL)算子。
WLConv根据以下内容迭代地优化节点着色:\[\mathbf{x}^{\prime}_i = \textrm{hash} \left( \mathbf{x}_i, \{ \mathbf{x}_j \colon j \in \mathcal{N}(i) \} \right)\]- Shapes:
输入: 节点着色 \((|\mathcal{V}|, F_{in})\) (独热编码) 或 \((|\mathcal{V}|)\) (基于整数的), 边索引 \((2, |\mathcal{E}|)\)
输出: 节点着色 \((|\mathcal{V}|)\) (基于整数)