Show HN: Graph Processing with Postgres and GraphBLAS
GraphBLAS is a sparse linear algebra API optimized for processing graphs encoded as sparse matrices and vectors. In addition to common real/integer matrix algebra operations, GraphBLAS supports up to 960 different “semiring” algebra operations, that can be used as basic building blocks to implement a wide variety of graph algorithms. A useful way to construct matrices is with array aggregate functions to build them from tables, for example:
Matrices can also be turned back into relational tuples using :
Empty matrices can be constructed with bigint arguments:
Matrices can be multiplied using a default “plus/times” semiring via the ‘*’ operator, or called explicity using functional notation so that different semirings can be used to carry out the operation.
Source: github.com