SourceValueTargetCsvParserOptions
Options for a source,target,value CSV parser.
Properties
edgeDecorator()?
optionaledgeDecorator: (e,source,target) =>ObjectData
Optional function that you can use to decorate loaded edges prior to their addition to the model
Parameters
e
Basic data object containing the edge's value.
source
Data for the edge's source
target
Data for the edge's target
Returns
nodeDecorator()?
optionalnodeDecorator: (o,isSource) =>ObjectData
Optional function that you can use to decorate loaded nodes prior to their addition to the model
Parameters
o
Basic data object containing the node's ID.
isSource
boolean
Whether or not the given node is an edge source.
Returns
readHeaders?
optionalreadHeaders:boolean
Defaults to true - whether or not the file is expected to have headers