Skip to content

ele.isEdge()

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

eles.isEdge — Collection › Metadata and identity

Preview · Collection › Metadata and identity

Read in the complete API reference · All API members

// Whether the first element is an edge
ele.isEdge(): boolean

Whether the first element is an edge.

Returns boolean

true for an edge

Example

console.log(eles.isEdge()); // false

Example graph and handle setup