cc = toponetx.classes.CombinatorialComplex()
# ...add some cells to the cc...
cc.adjacency_matrix(rank=i, via_rank=j)
The call to cc.adjacency_matrix can cause scipy to raise a SparseEfficiencyWarning.
We can try using the index argument of adjacency_matrix to potentially fix this issue, but it may also not help. I could not find an issue on their repository, but I can try to create one with a minimal example. We should try using the index argument anyways as it will remove the need for some manually written functions.
I do not see this as a critical issue, I mainly wanted to document it here to avoid future confusion.
It turns out that I misunderstood the purpose of index and using it is not helpful for either purpose. It simply returns the cell corresponding to each row/column.
See the code block below:
The call to
cc.adjacency_matrix
can causescipy
to raise aSparseEfficiencyWarning
.We can try using the
index
argument ofadjacency_matrix
to potentially fix this issue, but it may also not help. I could not find an issue on their repository, but I can try to create one with a minimal example. We should try using theindex
argument anyways as it will remove the need for some manually written functions.I do not see this as a critical issue, I mainly wanted to document it here to avoid future confusion.