oscar-system / Polymake.jl

Interface to Polymake using CxxWrap
Other
29 stars 19 forks source link

wrap pm::Array<std::pair<Int, Int>> #283

Closed kalmarek closed 4 years ago

kalmarek commented 4 years ago

needed for spanning tree edges, needed for Perles irrational polytope example

kalmarek commented 4 years ago

@IvanSpirandelli you'll need this to be able to access

julia> vrf = @pm topaz.vietoris_rips_filtration{Rational}(distances, a, 0.2, 1);

julia> pershom = topaz.persistent_homology(vrf)
PropertyValue wrapping pm::Array<std::__cxx11::list<std::pair<long, long>, std::allocator<std::pair<long, long> > >>
(...)

do you want to try adding it? @alexej-jordan can guide you through the whole process as well ;)

IvanSpirandelli commented 4 years ago

That would be great!

benlorenz commented 4 years ago

Please note that there is an additional std::list involved in the homology. But this could probably be done in one go.