Skip to main content
#graph-neural-networks#graph-representation#stanford#study

GCN & GNN 01 — What is a graph, and why learn relationships?

Read 12 original CS224W slides with lecture captions. Compute how connections change a three-node graph, then examine aggregation and node order.

Estimated reading · 24 min

GCN & Graph Neural Networks · Study map

A 50-chapter plan in nine parts, from graph representations and GCN derivations to geometric learning and graph foundation models.

  1. Part 1. Graphs and learning tasks 01–05
    1. Reading · GCN & GNN 01 — What is a graph, and why learn relationships?
    2. How do we choose nodes, edges and features? (Upcoming)
    3. How do node, link and graph prediction differ? (Upcoming)
    4. What do distance, connectivity and centrality measure? (Upcoming)
    5. How do random walks become embeddings? (Upcoming)
  2. Part 2. Spectral graph theory 06–11
    1. Reading graphs with vectors, matrices and quadratic forms (Upcoming)
    2. Why does the Laplacian measure signal smoothness? (Upcoming)
    3. What is frequency in the graph Fourier transform? (Upcoming)
    4. How do we define convolution on a graph? (Upcoming)
    5. Why do polynomial filters use local neighborhoods? (Upcoming)
    6. How do filter stability and transfer between graphs differ? (Upcoming)
  3. Part 3. Deriving and implementing GCNs 12–17
    1. From early GNNs to spectral networks (Upcoming)
    2. Deriving ChebNet step by step (Upcoming)
    3. The first-order approximation in the Kipf–Welling GCN (Upcoming)
    4. What do self-loops and normalization change? (Upcoming)
    5. Which labels and graph structure train a GCN? (Upcoming)
    6. Implementing a GCN in PyTorch and comparing it with PyG (Upcoming)
  4. Part 4. Message-passing architectures 18–23
    1. The shared structure of message passing and graph networks (Upcoming)
    2. Neighbor sampling and inductive learning in GraphSAGE (Upcoming)
    3. What does attention learn in GAT? (Upcoming)
    4. GIN and multiset aggregation (Upcoming)
    5. Passing edge features, directions and global state (Upcoming)
    6. Graph-level representations and pooling (Upcoming)
  5. Part 5. Expressivity and limitations 24–29
    1. The 1-WL test and GNN expressivity (Upcoming)
    2. What do positions, subgraphs and higher-order structure add? (Upcoming)
    3. Oversmoothing and deep GCNs (Upcoming)
    4. Oversquashing, bottlenecks and graph rewiring (Upcoming)
    5. Homophily, heterophily and graph construction (Upcoming)
    6. Designing fair comparisons of GNNs (Upcoming)
  6. Part 6. Geometry, time and robotics 30–35
    1. From permutation symmetry to geometric equivariance (Upcoming)
    2. EGNN and updates to 3D coordinates (Upcoming)
    3. ST-GCN and human joint graphs (Upcoming)
    4. Dynamic graphs and neural relational inference (Upcoming)
    5. Multi-agent systems, meshes and physical simulation (Upcoming)
    6. Evaluating occlusion, noise and distribution shifts (Upcoming)
  7. Part 7. Graph transformers 36–40
    1. Structural information in graph transformers (Upcoming)
    2. Graphormer, SAN and spectral encoding (Upcoming)
    3. SAT, TokenGT and graph tokens (Upcoming)
    4. Combining local and global operations in GraphGPS (Upcoming)
    5. Evaluating long-range graphs and scalability (Upcoming)
  8. Part 8. Advanced graph learning 41–45
    1. Heterogeneous graphs and relation-specific messages (Upcoming)
    2. Link prediction in knowledge graphs (Upcoming)
    3. Bipartite recommendation graphs and LightGCN (Upcoming)
    4. Graph self-supervision and pretraining (Upcoming)
    5. Graph generation, autoencoders and diffusion models (Upcoming)
  9. Part 9. Graph foundation models and graph AI 46–50
    1. The scope of graph foundation models (Upcoming)
    2. PRODIGY and graph in-context learning (Upcoming)
    3. Relational deep learning and databases (Upcoming)
    4. What role does the graph play in GraphRAG? (Upcoming)
    5. Designing reproducible graph AI research (Upcoming)

Suppose a human pose estimation model outputs the coordinates of a shoulder, elbow, and wrist. Storing those coordinates as a list tells us where each joint is. Adding the information that the shoulder connects to the elbow, and the elbow connects to the wrist also represents the structure of the body. Even with the same coordinate list, the model now has different information available to it.

This difference is the starting point for studying graph neural networks (GNNs). What can we compute when the input contains both the features of objects and the relationships between them? In this installment, we define a graph, read the examples in the original lecture, and check that two graphs differing only in their connections can produce different numerical results. We will derive the graph convolutional network (GCN) after establishing this foundation.

Our question: When the features of individual objects are insufficient, what information do their connections add?

The main source is pages 21–32 of the first Stanford CS224W Fall 2026 lecture PDF. We also use the manual English captions of Stanford Online’s 2021 Lecture 1.1. The video intervals below identify statements verified in the 2021 captions; their connection to the 2026 slides is conceptual. In particular, pages 26–27, which introduce databases and RelBench, are read separately as 2026 material.

#PDF page 21 — Studying objects together with their relationships

A black CS224W section cover displays Machine Learning with Graphs and Jure Leskovec's name.
Stanford CS224W 2026 L1 · PDF page 21 — The section cover introducing the main discussion of learning with graphs.Jure Leskovec · Stanford CS224W · Original source · Full-size image

Here the lecture moves beyond course administration and starts examining why we use graphs. A graph in this context is a data structure that stores objects and their connections, rather than a bar chart displaying numerical values.

There is no need to turn every dataset into dots and lines from the outset. First decide what you want to predict, then ask whether information about other objects is needed to make that judgment. Purchase behavior that cannot be explained by a product’s price alone may involve users and their purchase histories. A pose that cannot be identified from one joint’s coordinates alone may involve the structure linking other joints. Choosing which relationships to include is the first modeling decision.

#PDF page 22 — What does a graph represent?

The Why Graphs slide introduces graphs as a language for describing and analyzing entities and their relationships or interactions.
Stanford CS224W 2026 L1 · PDF page 22 / printed slide 21 — Describing entities together with their relationships.Jure Leskovec · Stanford CS224W · Original source · Full-size image

In the 2021 lecture captions at 00:28–01:21, the instructor moves from considering objects individually to including the connections between them in the data. A short phrase from the captions captures this perspective:

“we really think of it in terms of networks”

This statement appears in the caption segment at 00:44–00:50. Let us now express that perspective with notation. At its most basic, a graph consists of two sets.

G=(V,E).G=(V,E).
  • VV is the set of nodes. A person, a joint, an atom in a molecule, or a database record can be a node.
  • EE is the set of edges. We record a connection when two objects have a relationship that we want to represent.

Nodes can also have features. If we write the features of node vv as xv∈Rdx_v\in\mathbb R^d, then dd is the number of components in the feature vector. For a joint node, possible features include coordinates, joint type, and detection confidence. The task and observation conditions determine which components to use.

Features and connections answer different questions. Features describe the state of an object; edges describe which other objects it is related to, and how. Node identifiers such as 1, 2, and 3 are names used for storage. Whether a particular identifier has physical meaning is a separate decision.

Our supplementary textbook, Hamilton’s Graph Representation Learning, Sections 1.1 and 1.1.2, also distinguishes connectivity from feature information. Keeping that distinction makes it easier to understand why we will later use an adjacency matrix and a feature matrix as separate inputs.

#PDF page 23 — Reading real networks as graphs

Computer networks, event graphs, a subway network, a food web, disease pathways, and a particle network are shown side by side.
Stanford CS224W 2026 L1 · PDF page 23 / printed slide 22 — Networks from several domains.Jure Leskovec · Stanford CS224W; individual image credits retained in the original slide · Original source · Full-size image

Although the pictures may all look like dots and lines, their nodes and edges have different meanings. A computer network can represent devices and communication links; a subway network can represent stations and track connections; a food web can represent organisms and feeding relationships. In an event graph or a disease pathway, the meaning of nodes and connections must come from the definitions used in that field.

For example, an edge between two subway stations need not mean that they are geographically close. Nearby stations may have no direct track connection, and different pairs of neighboring stations may have different travel times. This motivates storing whether a connection exists and what properties it has separately. Recording travel time as an edge weight is one example.

An edge alone does not establish causation. A physical connection, an observed interaction, and statistical similarity are different relationships. We need to state which meaning the edges of our graph carry before we can interpret the model’s output.

The 2021 lecture captions at 01:21–03:18 explain how choosing entities and relationships produces graph representations across communication, society, molecules, scenes, and code. The next two slides broaden this range of examples.

#PDF page 24 — The direction and type of a relationship matter

Examples show economic, citation, communication, social, neuronal, and internet networks.
Stanford CS224W 2026 L1 · PDF page 24 / printed slide 23 — Relationships in economics, citations, communication, society, neurons, and the internet.Jure Leskovec · Stanford CS224W; individual image credits retained in the original slide · Original source · Full-size image

In a citation network, it matters that paper A cites paper B in that direction. In a transaction graph, removing who sent something to whom can discard information needed for the original question. By contrast, the three-node example we calculate later in this installment uses only undirected connections.

Saying that we have represented something as a graph therefore includes at least the following choices.

ChoiceRepresentations that can differ for the same dataImplication for prediction
Unit of a nodeOne person / one account / one messageWhat counts as a single object?
Meaning of an edgeFriendship / sending a message / membership in the same groupWhat information is passed through neighbors?
DirectionA to B / an undirected A–B connectionWhich direction of information or influence is preserved?
Time windowOne instant / the past week / a sequence of eventsRelationships from which times are included in the input?

This table is the author’s comparison of modeling choices. Use it to check what a representation preserves and what it leaves out before feeding the different networks in the slide into the same algorithm. A graph represents selected relationships in the world.

#PDF page 25 — Structure can be observed or constructed for a purpose

The slide shows a knowledge graph, a three-dimensional shape, code, molecules, a scene graph, and a regulatory network.
Stanford CS224W 2026 L1 · PDF page 25 / printed slide 24 — Relationships in knowledge, shapes, code, molecules, scenes, and regulation.Jure Leskovec · Stanford CS224W; individual image credits retained in the original slide · Original source · Full-size image

For a molecule, we can use atoms as nodes and bonds as edges. For a three-dimensional shape, we can choose points or mesh vertices as nodes. For code, different graphs result depending on whether we represent syntax, execution flow, or data dependencies. In knowledge graphs and regulatory networks, the types and directions of connections are also part of the description.

The scene graph at the upper right connects a Sun, Wheel, and Cart to components such as circles, lines, and filled squares. It shows how a computer graphics scene is assembled from parts and how those parts are shared. The dolphin at the lower right is an example of representing a shape with a triangular mesh. Both help construct a visual scene or shape, but their connections express different relationships.

Let us extend this to another use of scene graphs in computer vision. After detecting a person and a cup in an image, we can represent the relationship that the person is holding the cup. This person–cup example is the author’s supplement; it is not the example drawn on the slide. Both uses add relationships to an object list to describe a scene. If another model estimates those relationships, the edges can also contain errors and uncertainty.

The same principle applies to pose data. A graph based on anatomical connections and a graph that connects spatially close joints embody different assumptions. A wrist approaching another person’s elbow does not mean that the two joints are connected by the same bone. Remember that deciding which relationships the learning task needs is part of the graph model.

#PDF page 26 — Database tables are connected too

Multiple tables and references between them are shown for commerce, finance, and clinical databases.
Stanford CS224W 2026 L1 · PDF page 26 / printed slide 25 — Reading database relationships as graphs.Jure Leskovec · Stanford CS224W · Original source · Full-size image

On the left are tables concerning customers, orders, and products. In the middle is a schema linking accounts, transactions, and other records. On the right is a schema linking patients, admissions, and related records. The boxes in this diagram show table structures rather than individual graph nodes. We should distinguish this schema-level picture from a graph in which individual records become nodes.

A row in a customer table contains customer features, and a row in a product table contains product features. Order or sales records connect the two. To use information spread across several tables, we need to know which rows refer to which other rows. This is why relationships used for database joins can also be useful from a graph perspective.

Here is a small example to help read the original slide.

Record typeExample featuresObjects it can connect to
User U1Signup time, regionU1’s sales or order records
Sale S1Quantity, transaction timeUser U1 and product P1
Product P1Product category, priceSales records containing P1

In this structure, reading only a user’s features differs from also reading information about the transactions and products connected to that user. For a prediction made at a particular time, only records and relationships available at that prediction time may enter the input. Connecting later transactions in advance would introduce future information. This is an evaluation condition we need when applying the example.

#PDF page 27 — Turning relationships between tables into learning inputs

User, sales, and product tables are connected into a graph to explain relational deep learning.
Stanford CS224W 2026 L1 · PDF page 27 / printed slide 26 — Relational deep learning connects Users, Sales, and Products.Jure Leskovec · Stanford CS224W · Original source · Full-size image

This slide connects users, sales, and products while keeping their different types. Multiple sales can occur between one user and one product, so representing each sales record as a node, as in the preceding example, is one possible choice. Where we store transaction times and quantities changes the graph’s construction.

We will return to representations with different node or relation types when studying heterogeneous graphs. For now, the key point is that users and products do not acquire the same meaning merely because we encode them as vectors of equal length. The input types and the meanings of their relationships must remain part of the model design.

The official RelBench website, linked by the original slide, is a starting point for exploring learning tasks on relational databases. Pages 26–27 are examples from the 2026 slides; we do not present them as statements from the 2021 lecture linked earlier. Later installments will examine the construction and evaluation of relational deep learning datasets in detail.

#PDF page 28 — Calculating what information relationships add

The slide represents relationships in complex domains as graphs and asks how that structure can support prediction.
Stanford CS224W 2026 L1 · PDF page 28 / printed slide 27 — How can relational structure be used for better predictions?Jure Leskovec · Stanford CS224W · Original source · Full-size image

The 2021 lecture captions at 03:18–05:48 introduce observed networks and graphs constructed by defining relationships, then ask what information that structure adds to prediction. The 2026 slide likewise motivates learning by explicitly modeling relationships.

Whether predictive performance actually improves depends on the chosen relationships, objective, data, and evaluation conditions. At this stage, let us check a smaller question: If node features stay the same, can changing only the connections change a computation’s result? The example below is the author’s own calculation, not a paper’s benchmark result.

#Fix the assumptions first

There are three nodes, V={1,2,3}V=\{1,2,3\}, and each node has a single real-valued feature. Set every feature value to 1.

x1=x2=x3=1.x_1=x_2=x_3=1.

We use undirected, unweighted graphs and add no self-loops, which would connect a node to itself. The first graph is the path 1–2–3. The second adds a 1–3 connection to form a triangle.

All three nodes have feature value 1. Neighbor sums are 1, 2, 1 for the path and 2, 2, 2 for the triangle.
The author's computational example — Two graphs with fixed features and different connections. No learned weights or normalization are used.Jiho · Example and calculation constructed by the author · Original source · Full-size image

First apply the same function fθf_\theta independently to each node. Its input is 1 at every node in both graphs.

hv=fθ(xv)=fθ(1).h_v=f_\theta(x_v)=f_\theta(1).

This function receives neither node identifiers nor connections. It therefore has no basis for distinguishing the two graphs. The same function applied to the same input produces the same output.

Now sum the features of each node’s neighbors. NG(v)\mathcal N_G(v) denotes, in graph GG, the set of neighbors directly connected to node vv.

mv=∑u∈NG(v)xu.m_v=\sum_{u\in\mathcal N_G(v)}x_u.

Here mvm_v is the single real number we have computed. This is a simple example of aggregation: collecting information held by other nodes. It is not yet the full equation of a GCN layer.

NodeNeighbors in the pathPath calculationNeighbors in the triangleTriangle calculation
1212, 31 + 1 = 2
21, 31 + 1 = 21, 31 + 1 = 2
3211, 21 + 1 = 2

With nodes ordered as 1, 2, and 3, the results are:

mpath=(1,2,1),mtriangle=(2,2,2).m_{\mathrm{path}}=(1,2,1),\qquad m_{\mathrm{triangle}}=(2,2,2).

To obtain a value representing the whole graph, sum these three results again. An operation that combines node-level results at graph level in this way is called a readout.

r(G)=∑v∈Vmv,r(Gpath)=4,r(Gtriangle)=6.r(G)=\sum_{v\in V}m_v,\qquad r(G_{\mathrm{path}})=4,\quad r(G_{\mathrm{triangle}})=6.

Because every feature equals 1, mvm_v in this example equals the number of neighbors, or the node’s degree. Each undirected edge is counted once at each endpoint, so r(G)=2∣E∣r(G)=2|E| also holds. The path’s two edges give 4; the triangle’s three edges give 6. Two different ways of counting confirm the same result.

#The aggregation rule changes which information is preserved

Now use mean aggregation: divide the sum by the number of neighbors. There are no isolated nodes in this example, so the denominator is never zero.

mˉv=1∣NG(v)∣∑u∈NG(v)xu.\bar m_v=\frac{1}{|\mathcal N_G(v)|}\sum_{u\in\mathcal N_G(v)}x_u.

Every neighbor has feature value 1, so the mean is 1 whether there is one neighbor or two.

mˉpath=(1,1,1),mˉtriangle=(1,1,1).\bar m_{\mathrm{path}}=(1,1,1),\qquad\bar m_{\mathrm{triangle}}=(1,1,1).

Under these assumptions, summation preserves the difference in neighbor counts, while averaging removes it. This does not establish that summation is better for every task. Averaging can be useful for reducing the effect of neighborhood size, whereas a sum can grow in magnitude with node degree. The information we preserve needs to suit the objective.

Nor can summation distinguish every graph. Consider a cycle of six nodes and two disconnected triangles, with all features again equal to 1. Every node has two neighbors in both cases. The single aggregation step above returns 2 at every node and a graph-level sum of 12. Different graph structures do not guarantee that the chosen computation will expose their difference.

The calculation establishes two specific points: connections can provide information absent from the feature list, and a computation can preserve or discard some of that information. Extending this question to learnable functions and multiple layers will be central to our study of GNNs.

#PDF page 29 — What regularity do images and sequences provide?

An image grid and text or speech sequences illustrate regular structures used by established deep learning methods.
Stanford CS224W 2026 L1 · PDF page 29 / printed slide 28 — Structure provided by grids and sequences.Jure Leskovec · Stanford CS224W · Original source · Full-size image

Image pixels have row and column coordinates. Once boundary handling is defined, the same rule identifies the positions above, below, to the left, and to the right of each pixel. A convolutional neural network (CNN) exploits this regularity by applying a small filter at multiple positions.

Sentences and time signals have a before-and-after order. Changing that order can change meaning or temporal relationships, so a model needs a way to use it. The slide’s comparison of CNNs and RNNs is a starting point for understanding these input structures. It need not be read as a restriction on the kinds of data that all present-day models can process.

The 2021 lecture captions at 05:48–07:39 contrast the regularity of sequences and grids with general graphs, motivating models that handle changes in size, connectivity, and node order.

#PDF page 30 — Is there a consistent rule for locating neighboring information?

Text, speech, and an image of the Mona Lisa emphasize the regular arrangement of sequences and grids.
Stanford CS224W 2026 L1 · PDF page 30 / printed slide 29 — Revisiting regularity in text, speech, and images.Jure Leskovec · Stanford CS224W · Original source · Full-size image

This slide repeats the preceding comparison in a different arrangement. The key is how we identify neighbors when applying the same operation at different locations, rather than whether the data looks like an image. For an image, fixed coordinate offsets provide a reference. For a sequence, relative positions before and after an element provide one.

In a general graph, one node may have two neighbors while another has ten. The coordinates used to draw a graph on a screen are not necessarily meaningful input coordinates. If a prediction changes merely because we rearrange the nodes for a clearer drawing, we should check whether the model is using the visualization layout instead of the relationships.

Conversely, graphs of joints, point clouds, or molecules can have actual coordinates as features. In those cases, we can process coordinates alongside connectivity. Whether a graph has coordinates and whether the order of stored nodes is meaningful are separate questions.

#PDF page 31 — Three challenges in graph learning

An irregular network, an image grid, and a text chain illustrate variable size, node ordering, and dynamic features.
Stanford CS224W 2026 L1 · PDF page 31 / printed slide 30 — Irregular connectivity, node order, and changes in time and features.Jure Leskovec · Stanford CS224W · Original source · Full-size image

#First, the number of nodes and neighbors can vary

To process a graph of three nodes and one of thousands of nodes with the same model, we need operations that remain defined as the size changes. The sum used earlier can be computed for any number of neighbors. We also saw that its magnitude depends on that number. Handling variable size and retaining useful information are problems we need to solve together.

Read the slide’s statement about spatial locality as a comparison: a common coordinate system and direction-specific neighbors are not guaranteed as they are on a grid. Graphs do have neighbors defined by edges, and geometric graphs may have actual coordinates. Message passing will use precisely these neighborhood relationships.

#Second, the order in which nodes are listed can change

For the preceding path graph, storing nodes in the order 1, 2, and 3 gave the neighbor sums (1,2,1)(1,2,1). If we preserve the nodes and connections but change only the storage order to 3, 1, and 2, the output should follow that order and become (1,1,2)(1,1,2). Node 2 is still in the middle of the path.

For node-level outputs, reordering the output in the same way as the input is reordered is called permutation equivariance. When a model returns one value for the entire graph, that value should remain unchanged under a change in storage order; this is permutation invariance. The path graph’s sum of 4 stays the same after reordering.

Why does a neighbor sum have these properties? If we move the actual neighborhoods and features together when relabeling the nodes, the values to be added do not change. Only their addition order changes, leaving the result unchanged. This explains equivariance and invariance in this simple example. In the next installment, we will verify the same idea by reordering an adjacency matrix and a feature matrix together.

#Third, connections and features can change over time

Communication links may appear and disappear, and people’s changing positions or poses may change a graph’s edges or features. A node can also carry numerical, textual, and image features together. We therefore need to decide which information describes an observation at one instant and which represents a record spanning several times.

The graphs calculated in this installment are fixed in time. When we move to temporal graphs, we will additionally define observation times, prediction times, and the time window used to construct neighborhoods. A calculation on a static example does not by itself guarantee accuracy in temporal prediction.

#PDF page 32 — From this question to different graph models

The slide asks how to build neural networks applicable to a wider range of data and connects that question to graph learning.
Stanford CS224W 2026 L1 · PDF page 32 / printed slide 31 — Extending neural networks to data with different structures.Jure Leskovec · Stanford CS224W · Original source · Full-size image

The original slide asks how we can build neural networks for data with different input structures. Starting from our calculation makes the next choices concrete. We need to decide what information neighbors send, how multiple messages are combined, how they are combined with a node’s own features, how many times the operation is repeated, and what is finally predicted.

GNN broadly refers to neural network families that handle graph inputs. Depending on context, GCN may refer to a family of graph convolutional models or to one particular model. This series will explicitly identify the Kipf–Welling GCN when discussing that model. Our neighbor-sum example is a basic computation without learned weights, normalization, or nonlinear activation.

#Supplementary original figure — Extensions shown in Annual Reviews Figure 1

Annual Reviews Figure 1 has five panels: message passing, graph transformers, temporal graphs, hypergraphs, and subgraphs.
Johnson et al., Graph Artificial Intelligence in Medicine (2024), Figure 1 · PDF page 5 / printed page 349. The original figure and caption region are shown as a crop.Johnson et al. · Annual Review of Biomedical Data Science · CC BY 4.0 · Original source · Full-size image

This comparison appears in Graph Artificial Intelligence in Medicine. Although the review concerns medical applications, we use the figure here to distinguish graph-model inputs and information flow. The attribution and the crop of the original figure region are identified under the paper’s CC BY 4.0 license.

PanelWhat to look forQuestion connected to this installment
a · Message passingNeighbor messages directed toward a central nodeWhat neighboring information should we aggregate?
b · Graph transformerGraph and positional encodings combined as model inputsHow should connectivity be conveyed to attention?
c · Temporal graphGraphs at different timesHow should changing relationships be processed?
d · HypergraphA relationship enclosing several nodes togetherAre pairwise connections sufficient?
e · SubgraphA selected group of nodes and edgesIs the prediction unit a structure larger than one node?

For now, connecting panel a to the preceding neighbor-sum calculation is sufficient. The small rectangles in the original figure represent vectors; the arrows toward the center represent message transmission. Our example simplifies each vector to a single real number and each message to a neighbor’s feature value. Later units will examine the other panels with specific definitions and original papers.

#Next step — Writing a problem as a graph

Our starting point is to think about features and connections separately. Even with all node features fixed at 1, the path and triangle produced different neighbor sums. Averaging removed that difference. Both the decision to include connectivity in the input and the decision about how to compute with it matter.

The next installment, “How should we represent nodes, edges, directions, and features?”, is planned and will cover pages 33–39 of the same lecture PDF. We will express the graphs used here as an adjacency matrix AA and a feature matrix XX, then calculate how both matrices must change when the node order changes.

Before moving on, answer the following three questions using your own example.

  1. In my problem, exactly what does one node represent, and what relationship does one edge mean?
  2. If I keep the features fixed and change the connections, is there a reason the value to be predicted should also change?
  3. Are the connections actually observed, or constructed by a rule or model? Is this information available at prediction time?

#Original sources and further reading

Connect