diff options
author | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-03-20 14:02:39 +0000 |
---|---|---|
committer | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2015-03-20 14:02:39 +0000 |
commit | bd9882e11ba5c8602196d416d04849766226e6ed (patch) | |
tree | dd12042465a4e6d86fe58c6a97a59376df980019 /src/Witness_complex/example/simple_witness_complex.cpp | |
parent | b364c0f0f5a6a6e8cd363403c85480be1e63bcf5 (diff) |
witness_complex now compiles
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/witness@495 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 8699acb60641842e40874ece61a5a0ecad3fa039
Diffstat (limited to 'src/Witness_complex/example/simple_witness_complex.cpp')
-rw-r--r-- | src/Witness_complex/example/simple_witness_complex.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/Witness_complex/example/simple_witness_complex.cpp b/src/Witness_complex/example/simple_witness_complex.cpp index 9147763f..5eb39eb0 100644 --- a/src/Witness_complex/example/simple_witness_complex.cpp +++ b/src/Witness_complex/example/simple_witness_complex.cpp @@ -27,11 +27,27 @@ using namespace Gudhi; -//typedef std::vector< Vertex_handle > typeVectorVertex; +typedef std::vector< Vertex_handle > typeVectorVertex; //typedef std::pair<typeVectorVertex, Filtration_value> typeSimplex; //typedef std::pair< Simplex_tree<>::Simplex_handle, bool > typePairSimplexBool; int main (int argc, char * const argv[]) { - std::cout << "Howdy world!\n"; + Witness_complex<> wc; + std::vector< typeVectorVertex > KNN; + typeVectorVertex witness0 = {1,7,5,2,6,3,4}; KNN.push_back(witness0 ); + typeVectorVertex witness1 = {2,6,4,5,7,1,3}; KNN.push_back(witness1 ); + typeVectorVertex witness2 = {3,4,2,1,5,6,7}; KNN.push_back(witness2 ); + typeVectorVertex witness3 = {4,2,1,3,5,6,7}; KNN.push_back(witness3 ); + typeVectorVertex witness4 = {5,1,6,7,2,3,4}; KNN.push_back(witness4 ); + typeVectorVertex witness5 = {6,7,5,2,1,3,4}; KNN.push_back(witness5 ); + typeVectorVertex witness6 = {7,5,6,1,2,3,4}; KNN.push_back(witness6 ); + typeVectorVertex witness7 = {2,6,4,5,3,1,7}; KNN.push_back(witness7 ); + typeVectorVertex witness8 = {1,2,5,4,3,6,7}; KNN.push_back(witness8 ); + typeVectorVertex witness9 = {3,4,5,2,6,3,4}; KNN.push_back(witness9 ); + typeVectorVertex witness10 = {5,7,1,3,6,2,4}; KNN.push_back(witness10); + typeVectorVertex witness11 = {5,6,1,7,2,3,4}; KNN.push_back(witness11); + typeVectorVertex witness12 = {1,6,7,5,2,3,4}; KNN.push_back(witness12); + wc.witness_complex(KNN); + std::cout << "Howdy world!\n"; } |