[−][src]Function forrustts::simplify_from_edge_buffer
pub fn simplify_from_edge_buffer(
samples: &SamplesInfo,
flags: SimplificationFlags,
state: &mut SimplificationBuffers,
edge_buffer: &mut EdgeBuffer,
tables: &mut TableCollection,
output: &mut SimplificationOutput
) -> Result<(), ForrusttsError>
Simplify a TableCollection
from an EdgeBuffer
.
See EdgeBuffer
for discussion.
Parameters
samples
: Instance ofSamplesInfo
. The fieldSamplesInfo::edge_buffer_founder_nodes
must be populated. SeeEdgeBuffer
for details.flags
: modify the behavior of the simplification algorithm.state
: These are the internal data structures used by the simpilfication algorithm.edge_buffer
: AnEdgeBuffer
recording births since the last simplification.tables
: aTableCollection
to simplify.output
: Where simplification output gets written. SeeSimplificationOutput
.
Notes
The input tables must be sorted.
See TableCollection::sort_tables_for_simplification
.
Limitations
The simplification code does not currently validate that "buffered" edges do indeed represent a valid sort order.