Provide functions for exporting matrices as sequential data types #454
Labels
core
something about core
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Priority:High
Priority Label for high priority issue
Priority:Medium
Priority Label for medium priority issue
We currently define the adjacency matrix (and all other matrices) as hash maps, and this is the most optimal choice, but I was thinking that it would be useful to provide some functions for exporting those matrices as more standard sequential data structure (linearized vector, vector of vector, Eigen matrix, ecc.). This would be useful for example if a user wants to draw a heat map for those matrices. We could easily implement this with a template function specialized for each data type we want to support.
Furthermore, one might want to do some calculations with those matrices, and in that case a sequential data structure would be better because it would grant locality (this would be critical if the calculation is run on a GPU)
Example:
It could be a free function, a
Graph
method or both.Wdyt @ZigRazor @nolankramer?
The text was updated successfully, but these errors were encountered: