updateRelationshipsFromData method

void updateRelationshipsFromData()

Update all of the references to nodes in case they had been modified in the model without properly notifying the model by calling GraphLinksModel#setGroupKeyForNodeData or GraphLinksModel#setToKeyForLinkData or other similar methods. This method does not conduct a transaction, so you need to start and commit one yourself.

This only updates the relationships between nodes, to have them reflect what is now declared in the model data. For example, in a GraphLinksModel if code has changed the value of the "to" property of a link data, calling this method on the corresponding Link would cause the link to connect with the Node whose data has the new key.

To update GraphObject properties that are data bound, call #updateTargetBindings. @expose @see #updateTargetBindings @since 1.5

Implementation

void updateRelationshipsFromData() {
  _i4.callMethod(
    this,
    'updateRelationshipsFromData',
    [],
  );
}