Skip to content

ele.isSimple()

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

eles.isSimple — Collection › Metadata and identity

Preview · Collection › Metadata and identity

Read in the complete API reference · All API members

// Whether the first element is a non-loop edge
ele.isSimple(): boolean

Whether the first element is a non-loop edge.

Returns boolean

true for an edge between two distinct nodes

Example

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

Example graph and handle setup