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

◆ getPatternNumber()

int SuffixTreeNode::getPatternNumber ( ) const
inline

Definition at line 140 of file SuffixTree.hpp.

141 {
142 // this function should *only* be called on leaves
143 // since internal nodes may correspond to multiple patterns
144 // returns the 0 based index of the pattern corresponding to this leaf
145 return -*(mLabel.end()-1)-1;
146 }

References mLabel.