Description
Generate a graph object (either DGL or NetworkX) from an Adjacency matrix and allow for node features to be established.
Result
I generate my solution below. However, other answers are encouraged.
Generate a graph object (either DGL or NetworkX) from an Adjacency matrix and allow for node features to be established.
I generate my solution below. However, other answers are encouraged.
Code
Example
The adjacency matrix is passed to the function. Additionally, other features (i.e. Feature vectors, Labels, etc.) can be passed in
node_features