Model.maketempfrompreservednodes#

Model.maketempfrompreservednodes(collection)#

Converts nodes from preserved nodes to temporary nodes.

Parameters:

collection (Collection) – The collection containing the node entities to convert.

Example#

Convert nodes with IDs 1 - 4 from preserved to temporary nodes#
import hm
import hm.entities as ent

model = hm.Model()

model.maketempfrompreservednodes(collection=hm.Collection(model,ent.Node,list(range(1,5))))