by nimish · 6y ago · 0 comments
https://github.com/michelp/pygraphblas/blob/master/pygraphbl...
I also made a quick introduction video for a paper submission you can see here:
Right now, the graphs I'm interested in are reasonably small (tens of thousands of edges), and my oldschool approaches are good enough, but if my employer's products continue their grow trajectory, we'll need to leverage GPUs and TPUs if at all possible. Should I be learning about GraphBLAS?
If the base types don't suit your needs, you can always make your own. Tim Davis has talked about how he's made new types that are small nxn matrices as elements of a larger matrix. You can have complex, quaternion, or complex bags of stuff as matrix elements as long as you define the operators you need to work on those types.
Here's an example of using User Defined Types for a shortest path algorithm that also stores backlinks along the shortest path so the shortest path tree is materialized. in Python:
https://github.com/michelp/pygraphblas/blob/master/pygraphbl...
As for what I'm doing, I work at D-Wave and a lot of my work is on what can be thought of as "compilers" for our quantum computers. There's tons of similarity between my problem area and compilers for FPGAs, for example, so I call it VLSI because that's the right ballpark.
https://andersource.dev/2019/08/25/fun-with-matrix-exponenti...
http://faculty.cse.tamu.edu/davis/GraphBLAS_files/toms_graph...