
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
graph2mat
Advanced tools
The aim of graph2mat is to pave your way into meaningful science by providing the tools to interface to common machine learning frameworks (e3nn, pytorch) to learn equivariant matrices.
It also provides a set of tools to facilitate the training and usage of the models created using the package:
pytorch_lightning modules to train, validate and test the orbital matrix models.fastapi.The package also implements a command line interface (CLI): graph2mat. The aim of this CLI is
to make the usage of graph2mat's tools as simple as possible. It has two objectives:
It can be installed with pip. Adding the tools extra will also install all the dependencies needed to use the tools provided.
pip install graph2mat[tools]
If you want to use graph2mat with e3nn you can also ask for the e3nn extra dependencies:
pip install graph2mat[tools,e3nn]

We are very open to suggestions, contributions, discussions...
We are looking forward to your contributions!
The graph2mat package was originally created by Peter Bjørn Jorgensen (@peterbjorgensen) and Pol Febrer (@pfebrer) in the frame of a collaboration to machine learn density matrices.
Since then, the following users have contributed to the code:
If you use graph2mat for one of your works, please cite our original paper:
@article{febrer2025graph2mat,
title={Graph2Mat: universal graph to matrix conversion for electron density prediction},
author={Febrer, Pol and J{\o}rgensen, Peter Bj{\o}rn and Pruneda, Miguel and Garc{\'\i}a, Alberto and Ordej{\'o}n, Pablo and Bhowmik, Arghya},
journal={Machine Learning: Science and Technology},
volume={6},
number={2},
pages={025013},
year={2025},
publisher={IOP Publishing}
}
We'll be very happy to see what you have done with it :)
FAQs
Utility package to work with equivariant matrices and graphs.
We found that graph2mat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.