Function tskit::bindings::tsk_edge_table_add_row
source · pub unsafe extern "C" fn tsk_edge_table_add_row(
self_: *mut tsk_edge_table_t,
left: f64,
right: f64,
parent: tsk_id_t,
child: tsk_id_t,
metadata: *const c_char,
metadata_length: tsk_size_t
) -> tsk_id_t
Expand description
@brief Adds a row to this edge table.
@rst
Add a new edge with the specified left
, right
, parent
, child
and
metadata
to the table. See the :ref:table definition <sec_edge_table_definition>
for details of the columns in this table.
@endrst
@param self A pointer to a tsk_edge_table_t object.
@param left The left coordinate for the new edge.
@param right The right coordinate for the new edge.
@param parent The parent node for the new edge.
@param child The child node for the new edge.
@param metadata The metadata to be associated with the new edge. This
is a pointer to arbitrary memory. Can be NULL
if metadata_length
is 0.
@param metadata_length The size of the metadata array in bytes.
@return Return the ID of the newly added edge on success, or a negative value on failure.