PathOptions
Options for a Path.
Properties
edgeFilter()?
optionaledgeFilter: (n) =>boolean
This function is given each Edge's backing data and asked to return true or false - true means include the Edge, false means exclude it.
Parameters
n
Returns
boolean
nodeFilter()?
optionalnodeFilter: (n) =>boolean
This function is given each Node/Group's backing data and asked to return true or false - true means include the Node/Group, false means exclude it.
Parameters
n
Returns
boolean
source
source:
string|Vertex
Path source. Either a vertex (node/group/port) or a vertex id.
strict?
optionalstrict:boolean
Sets whether or not paths are searched strictly by the given source/target. If you supply a node as the source, but there are only edges connected to ports on that node, by default these edges will be ignored. Switching strict to false will mean these edges are considered.
target
target:
string|Vertex
Path target. Either a vertex (node/group/port) or a vertex id.