Model.Clone or Model.Copy

Is there any way to create a clone or a copy of a GraphLinksModel?

The easiest might be to call CreateInitializedCopy(null) and then set the NodesSource and LinksSource to copies of the collections of data from the original model.

Thanks it works. But I observed a strange thing. CreateInitializedCopy copies all the properties except LinkCategoryPath. In the original, this property was set to “Category” and in the copy, it was set to “”. I only copied it by myself and now it’s working.

Ah, that appears to be a bug. Thanks for reporting it.