Get an element at a particular index in the collection.
Iterate over the elements in the collection using an implementation like the native array function namesake.
This function behaves like Array.prototype.forEach() with minor changes for convenience: You can exit the iteration early by returning false in the iterating function. The Array.prototype.forEach() implementation does not support this, but it is included anyway on account of its utility.
The function executed each iteration. ele - The current element. i - The index of the current element. eles - The collection of elements being iterated.
Optional
thisArg: any[optional] The value for this within the iterating function.
Get a subset of the elements in the collection based on specified indices.
Optional
start: number[optional] An integer that specifies where to start the selection. The first element has an index of 0. Use negative numbers to select from the end of an array.
Optional
end: number[optional] An integer that specifies where to end the selection. If omitted, all elements from the start position and to the end of the array will be selected. Use negative numbers to select from the end of an array.
http://js.cytoscape.org/#collection/iteration