Get the group string that defines the type of the element.
The group strings are 'nodes' for nodes and 'edges' for edges. In general, you should be using ele.isEdge() and ele.isNode() instead of ele.group(). http://js.cytoscape.org/#ele.group
A shortcut to get the ID of an element. http://js.cytoscape.org/#ele.id
Get whether the element is an edge. http://js.cytoscape.org/#ele.isEdge
Get whether the element is a node. http://js.cytoscape.org/#ele.isNode
Get the element's plain JavaScript object representation. http://js.cytoscape.org/#ele.json
Remove scratchpad data. You should remove scratchpad data only at your own namespaces. http://js.cytoscape.org/#ele.removeScratch
A namespace string.
Get or set the scratchpad at a particular namespace, where temporary or non-JSON data can be stored. Get scratchpad if one or no parameter provided. App-level scratchpad data should use namespaces prefixed with underscore, like '_foo'. http://js.cytoscape.org/#ele.scratch
Optional
namespace: stringA namespace string.
http://js.cytoscape.org/#collection/data