gnn

module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2025 License: Apache-2.0

README

GNN, Graph Neural Network (GNNs) library and tools for GoMLX

GoDev

[!Note] 🚧 EXPERIMENTAL and IN DEVELOPMENT: It's no where near from a complete GNN library (like PyTorch Geometric, TensorFlow GNN and others. It's being populated and the need arises.

Contributions are most welcome. 🚧

What is in it?

  • geometry.RadiusEdges: returns edges between the source and target points that are within a give radius. It works for arbitrary dimensions (2D, 3D, etc.).
  • geometry.NearestEdges: returns the edges between each source point and its closest target point. It works for arbitrary dimensions (2D, 3D, etc.).
  • graph.UnionEdges: returns the union from a list of edge sets.
  • graph.SortEdgesBySource: sort edges by source id.
  • layers.SparseSoftmax: calculating a Softmax on a sparse vector (typically index by some set of edge indices).

Directories

Path Synopsis
Package geometry provides supporting functionality when dealing with graphs that have geometric coordinates (except if otherwise stated, it assumes Euclidean spaces).
Package geometry provides supporting functionality when dealing with graphs that have geometric coordinates (except if otherwise stated, it assumes Euclidean spaces).
Package graph provides supporting functionality for manipulating graphs stored as feature tensors and edges tensors.
Package graph provides supporting functionality for manipulating graphs stored as feature tensors and edges tensors.
Package layers implements layers and graph functions that commonly used in GNN operations.
Package layers implements layers and graph functions that commonly used in GNN operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL