The functions for editing topology elements begin with tpm_edit.
tpm_editaddelem
Adds an element to a topology.
tpm_editdelelem
Deletes an element from a topology.
tpm_editmodelem
Modifies a topology element.
tpm_editupdelem
Updates a topology element.