NSAPH-Projects / topological-equivariant-networks

E(n)-Equivariant Topological Neural Networks
MIT License
19 stars 0 forks source link

Sparse implementation of adjacency/incidence matrices #3

Closed mauriciogtec closed 7 months ago

mauriciogtec commented 8 months ago

Check if toponetx handles sparse representations and transform them to sparse tensors.

ekarais commented 8 months ago

Yes it does, see the source file for the combinatorial complex. cc.incidence_matrix() has an optional sparse flag which when set makes the function return the matrix using the scipy.sparse.csr_matrix format. cc.adjacency_matrix() and cc.coadjacency_matrix() do not have such a flag, but they also seem to return sparse matrices.