Skip to content

eles.cy()

eles.cy — Collection > Metadata and identity. Cytoscape.js signatures, parameters and return contract.

eles.cy — Collection › Metadata and identity

Preview · Collection › Metadata and identity

Read in the complete API reference · All API members

// The core this collection belongs to
eles.cy(): Core<NodeData, EdgeData>

The core this collection belongs to.

Returns Core<NodeData, EdgeData>

the instance that owns these elements — a collection cannot span two cores, so this is also the identity a set operation against a foreign collection would violate

Example

console.log(eles.cy() === cy); // true

Example graph and handle setup