Skip to main content

FilterableDataset

Offers methods to invoke operations on dataset contents, and to filter the contents.

Extended by​

Methods​

eachEdge()​

eachEdge(fn): void

Invoke the given function on each edge in the dataset

Parameters​

fn​

(i, e) => void

Returns​

void


eachGroup()​

eachGroup(fn): void

Invoke the given function on each group in the dataset

Parameters​

fn​

(i, e) => void

Returns​

void


eachNode()​

eachNode(fn): void

Invoke the given function on each node in the dataset

Parameters​

fn​

(i, n) => void

Returns​

void


eachVertex()​

eachVertex(fn): void

Invoke the given function on each vertex (node or group) in the dataset

Parameters​

fn​

(i, e) => void

Returns​

void


filter()​

filter(spec, includePartials?): any

Filter the dataset and return a filtered copy.

Parameters​

spec​

any

includePartials?​

boolean

Returns​

any