psychNerdJae / successr

R package for modeling Successor algorithms in reinforcement learning (i.e., Successor Representation, Successor Features).
MIT License
1 stars 0 forks source link

Need more flexibility in `adjlist_to_matrix` #2

Open psychNerdJae opened 2 years ago

psychNerdJae commented 2 years ago

e.g., adjlist_to_matrix only takes column called edge. This is generally fine if converting from a graph adjacency matrix as originally intended, but this function could easily be extended to converting an SR (in df form) back into a matrix. All it requires is creating a new optional(?) argument such that the user can specify the name of the column containing relational data.