Skip to content
ml-recall

#directed-graph

1 question from Graph Neural Networks

Timed test

1 question · 1 min · score and explanations at the end

Take a test
Q 1 / 1Score 0 / 0

Question 1: Short answer

mediumAI-checkedGraph Neural Networks

A directed graph with 5 nodes is stored in PyTorch Geometric as

edge_index = torch.tensor([[0, 0, 1, 3, 2],
                           [1, 2, 2, 2, 4]])

A MessagePassing layer with the default flow="source_to_target" and aggr="add" runs on this graph without adding self-loops. How many messages does node 2 aggregate?

a whole number