Skip to content
Discussion options

You must be logged in to vote

scipy can only hold one-dimensional edge features inside its sparse matrices. As such, you would need to create two matrices (one for each edge feature):

L1 = to_scipy_sparse_matrix(edge_index, edge_attr[:, 0]).tocsc()
L2 = to_scipy_sparse_matrix(edge_index, edge_attr[:, 1]).tocsc()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Byun-jinyoung
Comment options

Answer selected by Byun-jinyoung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants