Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can get the key of simplex in Simplex Tree in GUDHI python? #1144

Open
ScarletVV opened this issue Oct 18, 2024 · 1 comment
Open

How can get the key of simplex in Simplex Tree in GUDHI python? #1144

ScarletVV opened this issue Oct 18, 2024 · 1 comment

Comments

@ScarletVV
Copy link

If I have a simplex such as [0, 1, 2], a triangle, how can I get the key(N) of this triangle in Simplex Tree, so I will know the triangle is Nth simplex add to simplicial complexes, and can I use the key to get the simplex ([0, 1, 2)]?

@mglisse mglisse transferred this issue from GUDHI/TDA-tutorial Oct 18, 2024
@mglisse
Copy link
Member

mglisse commented Oct 18, 2024

This functionality is available in C++ (https://gudhi.inria.fr/doc/3.10.1/class_gudhi_1_1_simplex__tree.html#a39fde6b8f9c1a47e02c3b82b0062f588 and https://gudhi.inria.fr/doc/3.10.1/class_gudhi_1_1_simplex__tree.html#a872198e2a65c71d7843b3cc329a8060e), but we have not made it available in Python so far. One reason is that using it can be error-prone: computing persistence overwrites a number of keys, modifying the complex (say adding a simplex) invalidates the filtration order and it is not automatically recomputed (too costly), etc.

Could you tell us more about your use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants