thanos

thanos

I’ve released ex_graphblas v0.2.0, an Elixir library for sparse linear algebra and graph computation inspired by the GraphBLAS standard.

What is it?

ex_graphblas lets you express graph algorithms as sparse matrix operations using semiring algebra. This is the approach behind the GraphBLAS standard – the same mathematical foundation used by MATLAB’s sparse operations and Python’s python-graphblas.

What’s it good for

GraphBLAS is especially powerful for massive, sparse graphs—where most possible connections don’t exist, which is the reality for domains like social networks (users ↔ relationships), financial systems (accounts ↔ transactions), knowledge graphs (entities ↔ relationships), and infrastructure maps (services ↔ dependencies). By representing these structures as sparse matrices and operating on them with linear algebra, GraphBLAS delivers highly efficient, parallelizable computation for tasks like traversal, ranking, and pathfinding, while its semiring abstraction lets you change the meaning of computation (e.g., shortest path, reachability, risk propagation) without rewriting algorithms. Backed by optimized implementations like SuiteSparse:GraphBLAS, it provides near-HPC performance on a single machine, making it an ideal foundation for large-scale graph analytics and knowledge-driven systems.

What’s included

  • Sparse matrices and vectors – COO construction, element-wise operations, transpose, dup
  • 12 built-in semiringsplus_times, min_plus, lor_land, max_min, and type-specific variants
  • Masks and descriptors – Structural and complement masks on all compute operations
  • 7 graph algorithms – BFS (reach + levels), SSSP, triangle count, connected components, degree, PageRank
  • Knowledge-graph queriesGraphBLAS.Relation with multi-predicate traversal and transitive closure

Backends:

  • Pure Elixir reference backend for development and testing (no dependencies)
  • SuiteSparse:GraphBLAS native backend via Zigler NIFs for production performance. The SuiteSparse backend wraps the same C library that powers MATLAB’s sparse operations and Python’s python-graphblas. If you’re doing graph analytics, recommendation engines, or knowledge-graph queries in Elixir, this gives you a path from prototype (pure Elixir) to production (native NIFs) without changing your application code.

The pure Elixir backend works out of the box. For the SuiteSparse backend, precompiled NIFs are downloaded automatically on supported platforms.

Links:

https://github.com/thanos/ex_graphblas

Roadmap

  • 0.3.x: Better error messages, instrumentation hooks
  • 0.4.x: Higher-level graph APIs, richer Relation combinators
  • 0.5.x: Nx integration exploration

This is the first external release, so I’d appreciate any feedback on the API design, documentation, or use cases you’d like to see supported. Happy to answer questions.

Where Next? Top

Trending in Announcing Top

wojtekmach
Hey everyone! Req is an HTTP client for Elixir that I’ve been working on for quite some time. There is already a lot of HTTP clients out...
New
handnot2
Samly can be used to enable SAML 2.0 Single Sign On in a Plug/Phoenix application. This library uses Erlang esaml to provide plug enabl...
New
woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
restlessronin
The repo is at GitHub - cyberchitta/openai_ex: Community maintained Elixir library for OpenAI API · GitHub. Docs are at OpenaiEx User Gu...
152 11030 135
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
fuelen
Hi all! I want to present a small library which provides a mix task for generating an Entity-Relationship Diagram for Ecto schemas. You...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
mudasobwa
I am seeing a lot of aplications of Argumentum ad Vericundiam in software discussions. They do link some piece of writing and point us to...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
sorenone
Today we’re releasing Oban for Python. Not an Oban client in Python. Not a pythonx wrapper embedded in Elixir. Nope, it’s a fully operati...
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
Herve37
We’re evaluating API mocking tools for OpenAPI-based projects and would love to hear what other teams are using. We’re particularly inte...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews