GAT
DGL document
DGL GAT
DGL官方教程GAT
# Case 1: Homogeneous graph
pip install dgl
import dgl
import numpy as np
import torch as th
from dgl.nn import GATConv
g = dgl.graph(([0,1,2,3,2,5], [1,2,3,4,0,3]))
# print(g)
# print(g.nodes())
# pri
GAT
DGL document
DGL GAT
DGL官方教程GAT
# Case 1: Homogeneous graph
pip install dgl
import dgl
import numpy as np
import torch as th
from dgl.nn import GATConv
g = dgl.graph(([0,1,2,3,2,5], [1,2,3,4,0,3]))
# print(g)
# print(g.nodes())
# pri