giotto-ai / pyflagser

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

data contains an edge filtration that contradicts the vertex filtration #84

Open marco-campos opened 2 weeks ago

marco-campos commented 2 weeks ago

Description

Can't load in a big adjacency matrix because I get a weird error saying the edge filtration contradicts the vertex filtration.

Steps/Code to Reproduce

aa_adj is a massive numpy adjacency matrix and I'm just trying to pass it through the flagser function.

result = pyflagser.flagser_weighted(aa_adj)

Expected Results

The results object with the diagrams.

Actual Results

RuntimeError: The data contains an edge filtration that contradicts the vertex filtration, the edge (0.000000, 58.000000) has filtration value 0.000000, which is lower than min(0.000000, 1.000000), the filtrations of its edges.

Versions

Linux-4.4.0-19041-Microsoft-x86_64-with-glibc2.31 Python 3.9.19 (main, May 6 2024, 19:43:03) [GCC 11.2.0] pyflagser 0.4.7