Skip to main content

WriteableDatasource

Extension of DataSource with methods to write to the model.

Extends

Methods

eachEdge()

eachEdge(fn): void

Invoke the given function on each edge in the dataset

Parameters

fn

(i, e) => void

Returns

void

Inherited from

DataSource.eachEdge


eachGroup()

eachGroup(fn): void

Invoke the given function on each group in the dataset

Parameters

fn

(i, e) => void

Returns

void

Inherited from

DataSource.eachGroup


eachNode()

eachNode(fn): void

Invoke the given function on each node in the dataset

Parameters

fn

(i, n) => void

Returns

void

Inherited from

DataSource.eachNode


eachVertex()

eachVertex(fn): void

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

Parameters

fn

(idx, vertex) => void

Returns

void

Inherited from

DataSource.eachVertex


filter()

filter(spec, includePartials?): any

Filter the dataset and return a filtered copy.

Parameters

spec

any

includePartials?

boolean

Returns

any

Inherited from

DataSource.filter