File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,10 @@ impl<'treeseq> LLTree<'treeseq> {
143143 pub fn samples ( & self , u : NodeId ) -> Result < impl Iterator < Item = NodeId > + ' _ , TskitError > {
144144 Ok ( NodeIteratorAdapter ( SamplesIterator :: new ( self , u) ?) )
145145 }
146+
147+ pub fn flags ( & self ) -> TreeFlags {
148+ self . flags
149+ }
146150}
147151
148152// Trait defining iteration over nodes.
Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ impl<'treeseq> Tree<'treeseq> {
135135 ) -> Result < impl Iterator < Item = NodeId > + ' _ , TskitError > {
136136 self . inner . samples ( u. into ( ) )
137137 }
138+
139+ pub fn flags ( & self ) -> TreeFlags {
140+ self . inner . flags ( )
141+ }
138142}
139143
140144impl < ' ts > streaming_iterator:: StreamingIterator for Tree < ' ts > {
You can’t perform that action at this time.
0 commit comments