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
eachGroup()
eachGroup(
fn):void
Invoke the given function on each group in the dataset
Parameters
fn
(i, e) => void
Returns
void
Inherited from
eachNode()
eachNode(
fn):void
Invoke the given function on each node in the dataset
Parameters
fn
(i, n) => void
Returns
void
Inherited from
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
filter()
filter(
spec,includePartials?):any
Filter the dataset and return a filtered copy.
Parameters
spec
any
includePartials?
boolean
Returns
any