Skip to content
maxkfranz edited this page Dec 5, 2011 · 1 revision

eles.size()

Get the number of elements in the collection.

eles.size()

Gets the size of the collection

Details

This function returns to you how many elements are in the collection. This function is useful in conjunction with eles.eq().

Examples

Get how many nodes are in the graph:

var howMany = cy.nodes().size();

Clone this wiki locally