Macaulay2 Engine
Loading...
Searching...
No Matches

◆ superword()

auto SuffixTree::superword ( const Word & w,
std::pair< int, int > & output ) const->bool

Definition at line 548 of file SuffixTree.cpp.

549{
550 auto tmp = std::vector<std::pair<int,int>> {};
551 superwords(w,tmp,true);
552 if (tmp.size() == 0) return false;
553 else
554 {
555 output = *(tmp.begin());
556 return true;
557 }
558}
bool superwords(const Word &word, std::vector< std::pair< int, int > > &output) const

References superwords().

Referenced by insertWorker().