Skip to main content

SourceValueTargetCsvParserOptions

Options for a source,target,value CSV parser.

Properties

edgeDecorator()?

optional edgeDecorator: (e, source, target) => ObjectData

Optional function that you can use to decorate loaded edges prior to their addition to the model

Parameters

e

ObjectData

Basic data object containing the edge's value.

source

ObjectData

Data for the edge's source

target

ObjectData

Data for the edge's target

Returns

ObjectData


nodeDecorator()?

optional nodeDecorator: (o, isSource) => ObjectData

Optional function that you can use to decorate loaded nodes prior to their addition to the model

Parameters

o

ObjectData

Basic data object containing the node's ID.

isSource

boolean

Whether or not the given node is an edge source.

Returns

ObjectData


readHeaders?

optional readHeaders: boolean

Defaults to true - whether or not the file is expected to have headers