GUDHI / gudhi-devel

The GUDHI library is a generic open source C++ library, with a Python interface, for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding.
https://gudhi.inria.fr/
MIT License
245 stars 65 forks source link

Periodic alpha complex with DTM filtration #1041

Closed Lxion0553 closed 3 months ago

Lxion0553 commented 3 months ago

Hi!

I'm trying to alpha complex with DTM filtration in periodic box. I saw that there are DTM codes in the python interface, but I didn't find
similar things in the c++ library (probably). While the python interface doesn't have periodic alpha complex implantation. Is there an relatively easy way to construct periodic alpha complex with DTM filtration in python (or c++)?

Thanks a lot!

mglisse commented 3 months ago

Hello, if I understand correctly, you want to build an alpha-complex, in a periodic space, using as weights (as in a regular triangulation) the DTM at each vertex? You are going to need to code some pieces yourself to get the complete pipeline.

Lxion0553 commented 3 months ago

Thanks for your guide! It seems like I should construct periodic alpha complex first and then compute DTM value for each vertex and filtration value for each edge and add vertices and edges with corresponding filtration value to simplex tree?

mglisse commented 3 months ago

Ah, it looks like you are going for what Raphaël Tinarrage calls alpha-DTM-filtration? Then note that you don't need an alpha-complex, just a Delaunay triangulation (i.e. you don't need filtration values if you are going to replace them with your own), though that doesn't change much in terms of code. Yes, what you suggest should work.

Lxion0553 commented 3 months ago

I understand. Thanks!