You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We distinguish edge weights, which are a single set of scalar numbers, from edge features. For instance here I create edge weights and two edge features array:
s = [1,1,2,3]
t = [2,3,1,1]
w = Float32[1.1, 0.1, 2.3, 0.5]
a =rand(Float32, 1, 4) # edge features of dimension 1
b =rand(Float32, 10, 4) # edge features of dimension 10
g =GNNGraph(s, t, w, edata=(; a, b))
# access with
g.edata.a
# some other alternatives:
g =GNNGraph(s, t, edata=a)
# e is the default name when no one is provided
g.edata.e
Using one feature per edge is possible, e.g.
However, I cannot find a way to use multiple features per edge, e.g.
w2
is only a toy example. Several datasets have edges with multiple features, so this would be an important feature for several applications.The text was updated successfully, but these errors were encountered: