Function tskit::bindings::tsk_treeseq_get_samples
source · [−]pub unsafe extern "C" fn tsk_treeseq_get_samples(
self_: *const tsk_treeseq_t
) -> *const tsk_id_t
Expand description
@brief Get the samples
@rst
Returns an array of ids of sample nodes in this tree sequence.
I.e. nodes that have the :c:macro:TSK_NODE_IS_SAMPLE
flag set.
The array is owned by the tree sequence and should not be modified or free’d.
@endrst
@param self A pointer to a tsk_treeseq_t object. @return Returns the pointer to the sample node id array.