giotto-ai / pyflagser

Python bindings and API for the flagser C++ library (https://github.com/luetge/flagser).
Other
13 stars 14 forks source link

Support rectangular (esp. sparse) matrices in pyflagser, fixing #48 #55

Closed ulupo closed 3 years ago

ulupo commented 3 years ago

Reference Issues/PRs

Fixes #48.

What does this implement/fix? Explain your changes.

Allows for non-square input in _extract_unweighted_graph and _extract_weighted_graph, handling all unspecified off-diagonal entries as absent from the filtration. Non-square warnings are left only for dense input. Code is simplified.