Flat vectors are not the whole graph.

Most built-in GNN layers expect one feature vector per node. General libraries can store higher-rank node tensors, but you usually write the message functions yourself. TGraphX ships convolutional message-passing layers for [C, H, W] and [C, D, H, W] node features.

What you handle yourself with vector-oriented layers

  • Reshaping or custom message functions to keep image or volume structure.
  • Shape bookkeeping between encoder and graph layers.

What changes when nodes can be tensors

  • You write the same shape your data has — no flattening.
  • Graph construction checks node counts and edge indices up front.
  • Vision, KG, RL, and graph generation share one substrate.

Where TGraphX is complementary

ToolStrengthTGraphX is
PyG / DGLIndustrial GNN ecosystems, broad operator coveragecomplementary · use together
NetworkXClassical graph algorithms, analysiscomplementary · interop encouraged
PyKEENSpecialized knowledge-graph embeddingpartial overlap on basic KG embeddings; PyKEEN is far broader
Stable-Baselines3 / RLlibRL infrastructure, distributed trainingcomplementary · TGraphX provides graph envs

Further reading