pyg-team/pytorch_geometric

edge representation of directed graph

Closed this issue · 2 comments

❓ Questions & Help

Hi @rusty1s , if one directed graph's edge index is presented by this
edge_index = torch.tensor([[0, 1], [1, 2]], dtype=torch.long)
Does it mean there is an edge from node 0 pointing to node 1 or node 1 pointing to node 0?

An edge from node 0 pointing to node 1, and an edge from node 1 pointing to node 2.

Got it. Many thanks for your reply :)