Matrices need some love

Graph theory seems to be of much use in computing science, including neural networks, optimization,…
Heck, I tried all the tools in the “sets” tab to solve my problem with finding the lists of tangentially connected faces on a Brep , and finaly, the most straight-forward way I found to do it is use a graph.
I wish I knew how to convert this “face connectivity” graph into an adjacency matrix and compute the lists through operations on matrices.
Instead, I had to resort to drawing actual geometry and using “tricks” to get my lists.