In case there is no attribute about the graph?

#1

Hi
As the tutorial shows, the input of GCN in GGL need the attribute (vector) of each node.
So, if there is no attribute and only the graph topology structure, how to use DGL to learn the embedding of nodes?
Thanks

#2

Hi,

You can use constant vector as node feature such as np.ones(10) or node’s degree as initial feature.

#3

Yeah,
Thanks for your reply.