AI Infrastructure
The Same Graph Edges Can Send Different Features to Each AI Node
Determine which endpoint supplies the message and which receives it, then apply the declared message, aggregation and update rules. In PyTorch Geometric 2.7.0, source_to_target sends from dense edge-index row 0 to row 1; target_to_source reverses those roles. For the original FLOW3 example, the same rows [[0,2],[1,1]] and node features [2,10,5] give [0,7,0] or [10,0,10] under a sender-feature message, sum aggregation and unchanged aggregate output. The application's intended directed relationship determines which interpretation meets its requirement.
01
Follow each contribution from its sender to its recipient
A graph-input offer can preserve every node value and endpoint pair while leaving an essential computation unresolved: whose features will each node receive? A recipient gathers messages from the senders selected by the directed relationship. Changing those roles changes the information available to that recipient.
PyTorch Geometric (PyG) 2.7.0 documents a dense integer edge_index with shape [2,E], where E is the number of message columns. Under source_to_target, row 0 identifies senders and row 1 recipients. Under target_to_source, row 1 supplies the senders and row 0 the recipients. Dense here describes the index tensor; it does not mean that every vertex connects to every other vertex.
The tagged MessagePassing implementation makes this distinction explicit in _collect: it selects the recipient and sender rows, gathers the corresponding node features and groups messages by recipient. Its base message function returns the sender feature x_j, while its base update returns the aggregate unchanged. The aggregation rule completes the operation.
02
FLOW3: fix the vertices, feature mapping and one-step rule
FLOW3 is an original mathematical illustration with three fictional vertices, identified as 0, 1 and 2. Their unitless scalar features are respectively 2, 10 and 5. The shorthand feature list [2,10,5] represents a 3×1 feature array: one row per vertex, with one scalar in each row. The feature-to-vertex association stays fixed throughout.
The dense integer edge-index rows are [[0,2],[1,1]]. Read vertically: the first column pairs endpoints (0,1), and the second pairs (2,1). Thus the edge-index shape is 2×2 and there are two edge columns. Separately, declare the homogeneous assignment size as (3,3): both endpoint populations are the same three vertices. This preserves three recipient output positions under either flow.
Stipulate one message per edge column, equal to the sender's scalar. Sum the messages arriving at each recipient and return that sum unchanged. Define an empty sum as zero. There are no self loops, duplicate edge columns, own-node or residual contributions, edge features, weights, bias, normalization or nonlinear update. The calculation contains one propagation step and no batching or additional layers.
These premises follow the named base-class message and update contract with sum aggregation. They define an ideal mathematical calculation, rather than a model execution, an output from calling base MessagePassing.forward, or the behavior of a general learned GNN.
03
Source to target: vertices 0 and 2 contribute to vertex 1
With source_to_target, the first edge column (0,1) sends vertex 0's feature, 2, to vertex 1. The second column (2,1) sends vertex 2's feature, 5, to vertex 1. In edge-column order, the message values are [2,5] and the recipient identifiers are [1,1].
Vertex 0 has no incoming message, so its output is the empty sum, 0. Vertex 1 receives both contributions and produces 2 + 5 = 7. Vertex 2 also has no incoming message and produces 0. In vertex order 0,1,2, the complete output is therefore [0,7,0].
Vertex 1's own feature remains 10 in the input mapping, but the stipulated rule gives it no contribution to its own output. Similarly, vertices 0 and 2 retain their identities and output positions even though neither receives a message. Input features, message contributions and resulting node outputs are separate quantities.
04
Target to source: vertex 1 contributes to vertices 0 and 2
Keep the features and edge-index rows exactly as supplied, and interpret them with target_to_source. The first column now sends from endpoint 1 to endpoint 0. Its message is vertex 1's feature, 10. The second column sends from endpoint 1 to endpoint 2, also carrying 10. The message values are [10,10] and the recipient identifiers are [0,2].
Vertex 0 receives one message and produces 10. Vertex 1 receives none and produces 0. Vertex 2 receives one message and produces 10. The complete output is [10,0,10], again in vertex order 0,1,2.
One sender contributes its feature to two recipients here. That does not divide its scalar between them: the declared message rule supplies 10 on each edge column. Both flow interpretations retain three scalar outputs and two input edge columns. Their difference is which vertices contribute to each recipient.
05
Separate column order, flow reversal and added reverse edges
Permuting the two edge columns gives rows [[2,0],[1,1]]. Under source_to_target, vertex 1 now encounters the contributions 5 and 2 in that order. Its exact integer sum remains 7, so the output is still [0,7,0]. The endpoint relationships are unchanged. This illustrates the order independence of the stipulated mathematical sum.
Reversing flow instead exchanges sender and recipient roles within each existing column. It produces the different contributor pattern [10,0,10] derived above. For this homogeneous example and this rule, swapping the two index rows while retaining source_to_target would express the same reversed contributions. Swapping rows and swapping columns are different changes.
Retaining the original columns while separately adding the reverse endpoint pairs (1,0) and (1,2) creates a third case. Its four-column rows are [[0,2,1,1],[1,1,0,2]]. Under source_to_target and the same rule, vertex 0 receives 10, vertex 1 receives 2 + 5 = 7, and vertex 2 receives 10: [10,7,10]. This explicitly represents both directions for each original pair. Changing flow alone retains two columns; it does not add these reverse relationships or automatically make the original graph undirected.
References: [P3]
06
Compare the offered contributions with the consumer's requirement
Suppose consumer C requires vertices 0 and 2 to supply their scalar features to vertex 1, using exactly FLOW3's message, sum and update rules. Offer A supplies the fixed arrays with source_to_target. Offer B supplies identical arrays with target_to_source. A matches C's required contributor pattern; B delivers vertex 1's feature to the other two vertices instead. Identical input values, edge counts and array shapes do not make the offers equivalent for C.
A different consumer D may expressly require vertex 1 to contribute to vertices 0 and 2. Offer B then matches that directed requirement. Neither flow is universally preferable. The application must establish what the relationship means and which entities should supply information to which recipients before either offer can be judged against it.
For an actual data or model offer, connect the named entities and feature-row mapping to the endpoint convention, declared flow and consuming operation. Have the appointed provider explain a representative recipient's contributing senders and how their features enter the offered message, aggregation and update functions. Supplied output evidence needs that same operation and version context. A layer using recipient features, transformed messages or a different update needs its own explanation; preserving the endpoint pairs alone leaves that behavior unresolved.
The related mesh guide helps when the unresolved question is whether feature rows belong to points or cells and which entities are adjacent. The CSR guide addresses stored coordinates and their byte cost. Those decisions remain useful, but neither identifies FLOW3's directed feature contributions. Matching a contribution pattern also leaves any claim about the model's usefulness for its task to separate evidence.
07
Connect a separate equipment installation requirement
If the selected compute, storage or network equipment also needs physical installation, Leviathan's Rack & Stack / Colocation service covers an agreed package of mounting, IT cabling, labels and installation records. Use the related service and project inquiry to discuss that physical requirement.
Share a nonconfidential equipment list, rack and cable plans, site constraints, intended window and physical handoff needs. Graph-data preparation, software configuration and model acceptance remain with the appointed data and software owners.
References: [L1]
08Sources
Primary sources
- [P1]PyTorch Geometric 2.7.0 — MessagePassing referenceChecked 2026-10-21. Version-pinned flow, dense edge-index and assignment-size contract. Sparse adjacency has a separate transposed row/column convention and is outside FLOW3.
- [P2]PyTorch Geometric 2.7.0 — tagged MessagePassing implementationChecked 2026-10-21. The _collect, message, aggregate and update definitions identify sender-feature gathering and recipient grouping. FLOW3 supplies its own scalar values and explicit sum rule.
- [P3]PyTorch Geometric 2.7.0 — Creating Message Passing NetworksChecked 2026-10-21. Explains the separate message, permutation-invariant aggregation and update functions. Its later GCN example has additional layer behavior that is outside FLOW3.
- [L1]Leviathan Systems — Rack & Stack / ColocationChecked 2026-10-21. Defines the agreed physical equipment mounting, IT cabling, identification and installation-record scope for a separate installation requirement.
Contact
Discuss a separate equipment installation
Share a nonconfidential equipment, rack, cable and site outline to discuss physical installation scope, handoff requirements and availability.