Skip to content

Collectiontraversing

maxkfranz edited this page May 11, 2012 · 7 revisions

Collection traversing & iteration

Iteration

Call a callback function for each element in the collection.

Get the element at a particular index in the collection.

Get the number of elements in the collection.

Determine whether the collection is empty.

Determines whether the collection is nonempty.

Get a subset of the collection between two indices.

Put the elements of the collection in an array.

Traversing

Add two collections together to get their union.

Get a new collection without some specified elements.

Get the closed neighbourhood of the collection.

Get the open neighbourhood of the collection.

Get the (implicitly open) neighbourhood of the collection.

Get the edges in the collection matching an optional selector.

Get the nodes in the collection matching an optional selector.

Get elements that match a specified filter function or selector.

Get the intersection of two collections.

Edge traversing

Get the nodes connected to the edges in the collection.

Get the source nodes connected to the edges in the collection.

Get the target node connected to the edges in the collection.

Get all edges in the graph also between the nodes of any of the edges in the collection.

Get parallel edges with the same direction as the edges in the collection.

Node traversing

Get the edges between two sets of nodes.

Get the edges from this set of nodes to another set of nodes.

Clone this wiki locally