16 template <
class dataType>
19 std::vector<std::tuple<SimplexId, SimplexId, dataType>> &pairs) {
26 template <
class dataType>
27 std::vector<std::tuple<SimplexId, SimplexId, dataType>>
29 std::vector<std::tuple<SimplexId, SimplexId, dataType>> pairs;
30 getPersistencePairs<dataType>(tree, pairs);
31 for(
auto pair : pairs) {
32 tree->
getNode(std::get<0>(pair))->setOrigin(std::get<1>(pair));
33 tree->
getNode(std::get<1>(pair))->setOrigin(std::get<0>(pair));
void computePersistencePairs(std::vector< std::tuple< SimplexId, SimplexId, scalarType > > &pairs, const bool jt)
void setCustomTree(ftm::FTMTree_MT *cTree)
Node * getNode(idNode nodeId)
void getPersistencePairs(FTMTree_MT *tree, std::vector< std::tuple< SimplexId, SimplexId, dataType > > &pairs)
std::vector< std::tuple< SimplexId, SimplexId, dataType > > computePersistencePairs(FTMTree_MT *tree)