How to Align Features, Labels and Graph

How to align features,labels and graph data ? should I align data based on the order of graph.nodes?
for example in this tutorial:
https://docs.dgl.ai/tutorials/models/1_gnn/1_gcn.html
logits = net(g, features)
g and features are separated and how the features are assigned to nodes?

Hi,

The features should be on the order of graph.nodes, as you suggestted.

1 Like

This Node and Edge Features user guide page contains the official explanation.