How is the edge numbered in both heterogeneous and homogeneous graph

Is the edge id determined by the order of tensors we put into graph construction? Please refer to the following example for more clarifications.

g = dgl.heterograph({
(‘user’, “(‘user’, ‘follows’, ‘user’)”, ‘user’) : ([0,1],[1,2]), # is 0->1 numbered as EID 0? is 1-2 numberes as EID 1?
(‘user’, “(‘user’, ‘plays’, ‘game’)”, ‘game’) : ([0],[0]), is 0->0 numbered as EID 0?
(‘store’, “(‘store’, ‘sells’, ‘game’)”, ‘game’) : ([0,0],[1,0])})

Correct.

Placeholder since post must be at least 20 characters.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.