Get a particular data field for the element.
Optional
name: stringThe name of the field to get.
Set a particular data field for the element.
The name of the field to set.
The value to set for the field.
Update multiple data fields at once via an object.
The object containing name- value pairs to update data fields.
Get a particular data field for the element.
Optional
name: stringThe name of the field to get.
Set a particular data field for the element.
The name of the field to set.
The value to set for the field.
Update multiple data fields at once via an object.
The object containing name- value pairs to update data fields.
Optional
names: stringRemove developer-defined data associated with the elements. http://js.cytoscape.org/#eles.removeData
Optional
names: stringA space-separated list of fields to delete.
http://js.cytoscape.org/#collection/data
The following fields are immutable: id: The id field is used to uniquely identify an element in the graph. source & target : These fields define an edge's relationship to nodes, and this relationship can not be changed after creation. parent: The parent field defines the parent (compound) node.